delete a heightfieldShape

Grom

09-03-2007 06:55:08

I notice that heightfieldShape's deconstructor has been made private, and even if i make it public it will crash when I call it. How do I remove a heightfieldShape that I no longer need to keep track of?

luis

09-03-2007 09:46:21

keep track of the staticbody you created using the heightfield has its shape and then destroy the body using nxScene:

mScene->destroyBody( "namehere" );

it will destroy its the shape also.

Grom

09-03-2007 11:39:47

perfect thanks!