physics_interpolation_quick_start_guide.rst 871 B

12345678910
  1. .. _doc_physics_interpolation_quick_start_guide:
  2. Quick start guide
  3. =================
  4. - Turn on physics interpolation: :ref:`ProjectSettings.physics/common/physics_interpolation<class_ProjectSettings_property_physics/common/physics_interpolation>`
  5. - Make sure you move objects and run your game logic in ``_physics_process()`` rather than ``_process()``. This includes moving objects directly *and indirectly* (by e.g. moving a parent, or using another mechanism to automatically move nodes).
  6. - Be sure to call :ref:`Node.reset_physics_interpolation<class_Node_method_reset_physics_interpolation>` on nodes *after* you first position or teleport them, to prevent "streaking"
  7. - Temporarily try setting :ref:`ProjectSettings.physics/common/physics_fps<class_ProjectSettings_property_physics/common/physics_fps>` to 10 to see the difference with and without interpolation.