TOKSIM_DestroySimulator() |
Return value: None |
Description: Destroys the simulator. Call this at the end of the program. |
A template of a Blitz-Tokamak program using TOKSIM_DestroySimulator 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 |