kain
14-12-2007 00:12:04
Hello,
I am using a setCustomForceAndTorqueCallback function to make my ship move. It is working like this:
i have declare this :
and a custom forceCallback function with this code:
I change spd when i want with a keyboard letter.
My problem is that at a certain time the callback function is not called anymore .. I have made some tests and it appears that there is a small cube where my ship can move and as soon as he reach the side the callback doesnt work any more ..
I didn't declare any floor or things like that so what can cause a callback function to stop ??
I hope i am clear enough ..
Regards,
Jérémy
I am using a setCustomForceAndTorqueCallback function to make my ship move. It is working like this:
i have declare this :
mNewtShip->setCustomForceAndTorqueCallback( boost::bind( &Object3d::forceBodyCallback, this, _1 ) );
mNewtShip->setAutoFreeze(0);
and a custom forceCallback function with this code:
me->addForce(spd);
I change spd when i want with a keyboard letter.
My problem is that at a certain time the callback function is not called anymore .. I have made some tests and it appears that there is a small cube where my ship can move and as soon as he reach the side the callback doesnt work any more ..
I didn't declare any floor or things like that so what can cause a callback function to stop ??
I hope i am clear enough ..
Regards,
Jérémy