1
\$\begingroup\$

I am noob at using bullet physics. I am using it for collison detection and I want to create a compound body to represent a ship. However, in my game I need to know which part of the ship was hit.

The contact manifolds only have the collision objects in other words the compound body. The contact manifold does not have the child body that collided.

Thank you

\$\endgroup\$
0
\$\begingroup\$

I decided to give each part a different rigid body / collision shape. They were then connected using constrains, and collisions between constrained bodies were disabled. I disabled the collisions using btDynamicsWorld::addConstraint(btTypedConstraint* constraint, bool disableCollisionsBetweenLinkedBodies)

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.