feras32
24-11-2008 17:20:34
Hi
i am using the code from
http://www.ogre3d.org/wiki/index.php/Ni ... _Character
and i want to delete "_torso" and "_feet" bodies manually so i used this
but it gives runtime error . what's wrong?
i didnt find any thing about deleting ogreode bodies in the wiki.
i am using the code from
http://www.ogre3d.org/wiki/index.php/Ni ... _Character
and i want to delete "_torso" and "_feet" bodies manually so i used this
if (input->isKeyDown(KC_N))
{
delete _feet;
delete _torso;
delete joint;
delete torsoTrans;
delete torsoGeom;
delete feetGeom;
delete feetTrans;
}
but it gives runtime error . what's wrong?
i didnt find any thing about deleting ogreode bodies in the wiki.