TOKRB_SetAngularDamping(RigidBody%,Damping#)
Parameters:
RigidBody% = Rigid Body handle
Damping# = A float from 0-1 that represents the amount that an object's angular velocity is decreased each step.
Return value:
None
Description:
Sets the Angular Damping of a Rigid Body. This sets how much of an object's angular velocity is decreasd each timestep. This is to emulate air friction, and in some cases fix bugs.
Just creates a cube rigid body, and sets its angular damping with TOKRB_SetAngularDamping
obj(i) = CreateCube()
rb(i) = TOKRB_Create()
geom = TOKRB_AddBox(rb(i),2.0,2.0,2.0)
TOKGEOM_SetMaterialIndex geom,Rnd(1,3)
TOKRB_SetPosition rb(i),x#,35+i*0.2,50+z#
TOKRB_SetLinearDamping rb(i),0.001
TOKRB_SetAngularDamping rb(i),0.002
TOKRB_SetMass rb(i),2.0
TOKRB_SetBoxInertiaTensor rb(i),2.0,2.0,2.0,2.0



Documentation generated by Cod2Doc on 20 Jun 2004.