+1 vote

I created a node with some imported animations, and then create a collision shape.

The collision shape is created by Mesh -> Create TriMesh Collision Sibling. And as animation plays the collision shape stays static:

enter image description here

How to make make the collision shape move with animation and overlap with mesh?
Thank you!

Godot version 3.3
in Engine by (28 points)

1 Answer

+1 vote

Collision shapes aren't meant to take the shape of the animated mesh, it would be too expensive on the processor (or too buggy).

if you're after animated physics interactions, you can try attaching cube or capsule collision shapes to each bone, using BoneAttachment nodes.

A bit tricky, now that i think about it. you would need to seperate the BoneAttachment collision shapes into different collision layers and so on.

by (100 points)
edited by

Got it! Yeah I also realized it is too expensive. capsule collision shape of each bone and using BoneAttachment node sounds the right way to go. Thanks!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.