HELP - setCustomForceAndTorqueCallback

sensius

13-08-2008 12:30:53

Hi guys,

Could anyone tell me when the function in setCustomForceAndTorqueCallback called please?

In my application (frame listener), when a specific key pressed I called:
cone_Body->setCustomForceAndTorqueCallback<TutorialFrameListener>(&TutorialFrameListener::camCallback, this);

but when I set breakpoint into camCallback function, it is not reached :(

pra

13-08-2008 14:12:24

setCustomForceAndTorqueCallback should be called once, upon body creation. then you have to update your OgreNewt::World for the callback to be called