BenM
12-01-2011 02:28:17
This is probably one of those questions with a really obvious answer, but I can't figure it out.
I've been trying to delete a CompoundCollisionShape, associated with a RigidBody. The compound shape is composed of multiple sphere shapes.
I've tried using various combinations of mWorld->removeObject(), 'delete', and re-initialising. (On the compound shape itself, each of the subshapes, and the rigid body). I can sometimes get weird behaviour where they lose their collision properties, but I can't seem to remove them from the simulation entirely.
Any advice?
I've been trying to delete a CompoundCollisionShape, associated with a RigidBody. The compound shape is composed of multiple sphere shapes.
I've tried using various combinations of mWorld->removeObject(), 'delete', and re-initialising. (On the compound shape itself, each of the subshapes, and the rigid body). I can sometimes get weird behaviour where they lose their collision properties, but I can't seem to remove them from the simulation entirely.
Any advice?