Destruction of Collision shapes in Demos

Altren

28-05-2010 01:32:48

Looks like all static shapes in Dynamic_Demos created and never deleted - they stores in mShapes, but there's only one line in destruction code - mShapes.clear();
And rigid bodies that have pointer to shape doesn't delete it.
I found that destructor of OgreBulletCollisions::Object have commented out line "delete mShape;". So who should delete shapes?

Fish

28-05-2010 01:55:29

Regarding Ogre Bullet, your application is responsible for destroying everything that your application creates.

-Fish