luffy
13-02-2006 12:03:53
Hi, i im having problems with callback.
This is what i have done
1: Create the newton world and add the entities
2: Add the callback to the body of the entity
3: In my NewtonFrameListener call to update function
the problem is that the callback only is invoked in the first update. does i have to "update" the setCustomForceAndTorqueCallback every "update" call?
This is what i have done
1: Create the newton world and add the entities
2: Add the callback to the body of the entity
nwtBody->setCustomForceAndTorqueCallback(Entidad::_callBackMovimiento);
3: In my NewtonFrameListener call to update function
the problem is that the callback only is invoked in the first update. does i have to "update" the setCustomForceAndTorqueCallback every "update" call?