tokamak - how do I rotate an object?

Blitz3D Forums/Blitz3D Programming/tokamak - how do I rotate an object?

Does this help you ?

;AT THE BEGINNING
model=CreateCube()
rigidbody = TOKRB_Create()
geom = TOKRB_AddBox (rigidbody,2.0,2.0,2.0)
...
TOKRB_SetPosition rigidbody,0,0,0
TOKRB_SetRotation rigidbody,0,0,0
PositionEntity cube,TOKAB_GetX#(rigidbody),TOKAB_GetY#(rigidbody),TOKAB_GetZ#(rigidbody)
RotateEntity cube,TOKAB_GetPitch#(rigidbody),TOKAB_GetYaw#(rigidbody),TOKAB_GetRoll#(rigidbody)

;TO TURN YOU COULD USE FOR EXAMPLE
TOKRB_SetAngularMomentum rigidbody,0,-6,0

In the beginning i had the same problem with my rigidbodies. Spineffect could be stopped by adjusting the TOKRB_SetBoxInertiaTensor values !