Code: Select all
if(pRigidBody)
{
if(pColliderScene)
{
pColliderScene->getDynamicsWorld()->removeRigidBody(pRigidBody);
pColliderScene = NULL;
}
delete pRigidBody;
pRigidBody = NULL;
}
// delete pCollisionShape; <--- do i need to delete shape?
and if those shape are compound of other shape do they get deleted by the compound shape or do i need to store pointer to everything and delete them meeself?
