Skip to content

Commit faee8ba

Browse files
vidaliATWITCalinou
andauthored
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 <[email protected]>
1 parent ef817d5 commit faee8ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tutorials/performance/using_servers.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ Creating a sprite
9595
This is an example of how to create a sprite from code and move it using the low-level
9696
:ref:`CanvasItem <class_CanvasItem>` API.
9797

98+
.. note:: When creating canvas items using the RenderingServer, you should reset physics
99+
interpolation on the first frame using
100+
:ref:`RenderingServer.canvas_item_reset_physics_interpolation() <class_RenderingServer_method_canvas_item_reset_physics_interpolation>`.
101+
This ensures proper synchronization between the rendering and physics systems.
102+
98103
.. tabs::
99104
.. code-tab:: gdscript GDScript
100105

0 commit comments

Comments
 (0)