How to get Collisions to rotate with Mesh animations with one line of GDScript, Godot.
1. Add Collisions to match each Mesh in your desired Node.
2. Go to the GDScript Editor and write the following code inside Physics Process:
$CollisionShape.rotation = $MeshInstance.global_rotation
# Replace the CollisionShape and MeshInstance name with your nodes names.
When you run the project, your collisions should now rotate with the mesh animations, as it did for me.
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.