Tokamak / EaskTok - how to reset a RB motion?

Blitz3D Forums/Blitz3D Userlibs/Tokamak / EaskTok - how to reset a RB motion?

Boiled Sweets(Posted 2006) [#1]
Imagine a RB was rotating and moving, how can I reset it so that its still and not turning?


Boiled Sweets(Posted 2006) [#2]
EASY!

Just set the torque, velocity and angular momentum to 0.


Filax(Posted 2006) [#3]
Many thanks for this stuff :)


Boiled Sweets(Posted 2006) [#4]
Let me elaborate...

TOKRB_SetVelocity(body,0,0,0)
TOKRB_SetForce (body,0,0,0)
TOKRB_SetTorque(body,0,0,0)
TOKRB_SetAngularMomentum(body,0,0,0)


Hey Filax,

perhaps you could extend/include these in your AWESOME EasyTok libarary for easy use :-)