forcing physics updates

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By fuck

during _physics_process(), I want to move/add an area, and then check its collisions

However, it is not working because after I change it, I must wait for collisions to update before I can query it

How do i do this? Can i somehow force an update? or wait a frame?

I used a workaround to solve it, but it would still be good to know if it is possible to force a physics update. I added this part to inform you that I am not looking for a workaround anymore, but solely whether or not forcing physics updates is possible

As far as I know, there’s no way to force a physics update to happen sooner. You could increase the physics FPS temporarily (Engine.iterations_per_second) then set it back to its previous value, but that might cause issues.

Calinou | 2020-08-09 21:33

What’s the workaround?

elvisish | 2021-05-24 19:14