TOKSIM_Advance(timestep#,SubSteps%) |
Parameters: timestep# = The amount of time that has gone by. SubSteps% = The number of steps To divide the timestep into. Increase this if you are having collision errors. |
Return value: None |
Description: Advances the simulator. |
A template of a Blitz-Tokamak program using TOKSIM_Advance Const Rigid_Bodies=100,Animated_Bodies=5 TOKSIM_SetRigidBodiesCount Rigid_Bodies TOKSIM_SetAnimatedBodiesCount Animated_Bodies TOKSIM_SetRigidParticleCount 0 TOKSIM_SetControllersCount 0 TOKSIM_SetGeometriesCount Rigid_bodies+Animated_Bodies ;Assuming each one only has one geometry. Not true with more complex rigid bodies and animated bodies. TOKSIM_CreateSimulator(0,-10,0) Graphics3D 640,480 ;Setup The scene While Not KeyHit(1) TOKSIM_Advance .1,1 ;Position graphical representation RenderWorld Flip Wend TOKSIM_DestroySimulator |