Add AnimatableBody inherited from StaticBody for moving platforms #52286
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Edit: changed name to
AnimatableBody
after discussion on the chat.Another take on addressing godotengine/godot-proposals#2867, without renaming
StaticBody
.Supersedes #51600.
Instead of having a physics node named Static that can be either Static or Kinematic,
AnimatableBody
is added again as a separate node:-Inherited from
StaticBody
to make its usage clearer-Gets
sync to physics
functionality from the oldKinematicBody
node.-Still separated from
CharacterBody
to make its usage more focused (moving platforms and doors)Properly implemented constant velocity for kinematic bodies in godot physics servers (induced velocity without actually moving). It's now possible to make animated platforms with conveyor belts.
Also updated description for the different physics nodes to make their usage clearer.
Here's how it looks in the node hierarchy now with the new icon:
And the nodes properties: