summaryrefslogtreecommitdiffstats
path: root/doc/classes/StaticBody2D.xml
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-07-15 23:18:08 +0200
committerGitHub <noreply@github.com>2021-07-15 23:18:08 +0200
commit7aa44bef1ebef91bcb1c728e39007d8f5bf276ff (patch)
tree002365e3c5595d1256d05897bf7ea37d13648702 /doc/classes/StaticBody2D.xml
parent008a3f23ff6a2d6c06bb1815a691a54231646f93 (diff)
parentd12b44ca13bf442560fdfaa2353806991505201b (diff)
downloadredot-engine-7aa44bef1ebef91bcb1c728e39007d8f5bf276ff.tar.gz
Merge pull request #49327 from nekomatata/sync-to-physics-2d
Move sync to physics to StaticBody2D
Diffstat (limited to 'doc/classes/StaticBody2D.xml')
-rw-r--r--doc/classes/StaticBody2D.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/StaticBody2D.xml b/doc/classes/StaticBody2D.xml
index 85915a53fe..326bf58e22 100644
--- a/doc/classes/StaticBody2D.xml
+++ b/doc/classes/StaticBody2D.xml
@@ -29,6 +29,9 @@
The physics material override for the body.
If a material is assigned to this property, it will be used instead of any other physics material, such as an inherited one.
</member>
+ <member name="sync_to_physics" type="bool" setter="set_sync_to_physics" getter="is_sync_to_physics_enabled" default="false">
+ If [code]true[/code] and [member kinematic_motion] is enabled, the body's movement will be synchronized to the physics frame. This is useful when animating movement via [AnimationPlayer], for example on moving platforms. Do [b]not[/b] use together with [method PhysicsBody2D.move_and_collide].
+ </member>
</members>
<constants>
</constants>