Tokamak / EaskTok - how to reset a RB motion?

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

Imagine a RB was rotating and moving, how can I reset it so that its still and not turning?

EASY!

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

Many thanks for this stuff :)

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 :-)