See all glossary terms_physics_process()
is a special function in the Godot engine that is called every physics frame. Contrary to the _process() function, which is called as many times as possible, the engine tries to ensure that _physics_process()
is called at a fixed interval, and that the delta time passed to it is constant.
You should use _physics_process()
for all interactions between elements that involve collisions, forces, or other physics-related calculations. For example, movement, jumping, shooting, and so on should always be handled in the physics process.
Visually, using delta time to obtain framerate independence is sufficient. But for physical interactions, a changing delta value may make the calculations inconsistent.See Also
Related terms in the Glossary
External Links
Handpicked resources on the internet
school.gdquest.com - 0.3.5-2024-11-14T22:16:40.217Z-