mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
Add note to reset physics interpolation on first frame (#11346)
* Added note letting users know they should reset physics interpolation on first frame object is created * Removed (RID) from function name * Apply suggestions from code review --------- Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
@@ -95,6 +95,11 @@ Creating a sprite
|
||||
This is an example of how to create a sprite from code and move it using the low-level
|
||||
:ref:`CanvasItem <class_CanvasItem>` API.
|
||||
|
||||
.. note:: When creating canvas items using the RenderingServer, you should reset physics
|
||||
interpolation on the first frame using
|
||||
:ref:`RenderingServer.canvas_item_reset_physics_interpolation() <class_RenderingServer_method_canvas_item_reset_physics_interpolation>`.
|
||||
This ensures proper synchronization between the rendering and physics systems.
|
||||
|
||||
.. tabs::
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
|
||||
Reference in New Issue
Block a user