[SOLVED] How to create a compound shapes with PhysX

Hello, I have two questions

How can I create “compound shapes” with PhysX? (eg, to join Spheres and Box)
It’s possible to join two rigidbodies without using constraints?

You could just attach a box and a sphere to the same rigid body. By setting the local pose of each shape you can easily make a compound that represents a box joined to a sphere.

Gordon

Thanks for the reply, I solved my problem by adding the shapes into a single rigid body.

Using:
// C++
m_pMyRigidBody->attachShape(*my_shape_1);
m_pMyRigidBody->attachShape(*my_shape_2);
m_pMyRigidBody->attachShape(*my_shape_3);
// etc…