CollisionShape doesn't move with animation

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jdoohen52

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!

:bust_in_silhouette: Reply From: dari0us

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.

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!

jdoohen52 | 2021-05-07 06:09