Change dynamically parts of a btMultiBody

AngelGM
Posts: 12
Joined: Mon Oct 28, 2013 2:40 pm

Change dynamically parts of a btMultiBody

Post by AngelGM »

Hi all,

I have a btMultiBody of 2 btCollisionShapes.

During the game, I want to delete one of the shapes and, eventually, add another.

How can I identify those shapes? Is there a way to "getObject" or something similar? I know I can get the MultiBodyLinkCollider but I do not now how to reach the CollisionObject from there.

Any help would be incredibly welcome!.
Many thanks!
A.