Support for 3D sync to physics

Same implementation as in 2D.
This commit is contained in:
PouleyKetchoupp
2021-06-04 18:16:02 -07:00
parent 9427bf3842
commit 7f92127959
5 changed files with 159 additions and 31 deletions

View File

@ -32,6 +32,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 PhysicsBody3D.move_and_collide].
</member>
</members>
<constants>
</constants>