physics_interpolation_quick_start_guide.rst 921 B

123456789101112131415
  1. .. _doc_physics_interpolation_quick_start_guide:
  2. Quick start guide
  3. =================
  4. - Turn on physics interpolation: :ref:`Project Settings > 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()``
  6. rather than ``_process()``. This includes moving objects directly *and
  7. indirectly* (by e.g. moving a parent, or using another mechanism to automatically
  8. move nodes).
  9. - Be sure to call :ref:`Node.reset_physics_interpolation<class_Node_method_reset_physics_interpolation>`
  10. on nodes *after* you first position or teleport them, to prevent "streaking".
  11. - Temporarily try setting :ref:`Project Settings > Physics > Common > Physics Tick per Second<class_ProjectSettings_property_physics/common/physics_ticks_per_second>`
  12. to 10 to see the difference with and without interpolation.