How to make collision move with animation

Godot Version

4.0

Question

I have a 2d boat and it has a simple floating animation where it goes up and down in the water. my player can jump on top of the boat and i have a collisionshape2D on the boat for him to stand.

I was using this without any animation to the boat before. Now that i added the floating animation the collision doesnt follow it so while the boat looks to go up and down when the player goes on top of the boat he doesnt follow that movement because of the collision being still.

So is there a way to make the collision go up and down following the boats animation ?

Using AnimationPlayer, you can select the collision shape and add in keyframes to match the movement of the boat animation.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.