TOKSIM_SetGeometriesCount([Count%=50]) |
Parameters: Count% [Default value = 50] |
Return value: None |
Description: Sets the maximum number of geometries used in animated and rigid bodies. These are the geometries like sphere, cylinder, and box. |
A template of a Blitz-Tokamak program using TOKSIM_SetGeometriesCount 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 |