TOKJOINT_SetDampingFactor(Joint%,Damping#)
Parameters:
Joint% = The joint's handle
Damping# = The damping factor of the joint
Return value:
None
Description:
Sets the damping factor of the joint. This is how much the joint resists movement - like joint friction.
A hinge joint and ball joint from TOKA_JOINTSWITHDAMPING.bb
joint = TOKJOINT_Create(1,rb,0)
TOKJOINT_SetPositionAndRotationWorld(joint,0.0,4.0,0.0,0,0,90)
TOKJOINT_SetType(joint,1)
TOKJOINT_SetLowerLimit joint,3.14*0.0 ; (0 degrees)
TOKJOINT_SetUpperLimit joint,3.14*0.5  ; (+90 degrees)
TOKJOINT_EnableLimit joint,True
TOKJOINT_Enable(joint,True)
TOKJOINT_SetDampingFactor joint,30.0

joint2 = TOKJOINT_Create(2,rb,rb2)
TOKJOINT_SetPositionAndRotationWorld(joint2,0.0,2.0,-1.0,0,0,90)
TOKJOINT_SetType(joint2,3)
TOKJOINT_SetLowerLimit joint2,3.14*0.0 ; (0 degrees)
TOKJOINT_SetUpperLimit joint2,3.14*0.97  ; (+90  degrees)
TOKJOINT_EnableLimit joint2,True
TOKJOINT_Enable(joint2,True)
TOKJOINT_SetDampingFactor joint2,0.1



Documentation generated by Cod2Doc on 20 Jun 2004.