Detach, Destroy Geometry and Body

Dor

17-04-2010 12:15:13

I want to remove Geometry from simulation in OgreODE for some time, and attach it in different place.

Example: In collision callback, if player touched some special geometry, I want it to move over the player's head and stick relative to his head by fixed joint.

The problem is, that I can't just like that set the position - it triggers an error. I can't call the destructor of Body and Geometry object - it triggers the same error.
I've searched ODE documentation - there is destroyGeometry and destroyBody. How to use it in OgreODE?