Topic: when are physics shapes and objects deleted?
I see that MPhysicsContext has deleteShape() and deleteObject() method but I don't see them used anywhere.
If I do
entity->createPhysicsProperties();
physics properties and constraint are SAFE_DELETEd which means
delete pointer;
pointer = NULL;
but the physics shape and object are not deleted.
I then call
scene->prepareCollisionShape(entity);
scene->prepareCollisionObject(entity);
but in these functions there is no deleting of the previous object neither.