TOKSIM_CreateSimulator(GravityX#,GravityY#,GravityZ#)
Parameters:
GravityX#
GravityY#
GravityZ#
Return value:
None
Description:
Creates the simulator along with all the settings set by the previous TOKSIM functions, along with gravity settings.
A template of a Blitz-Tokamak program using TOKSIM_CreateSimulator
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



Documentation generated by Cod2Doc on 20 Jun 2004.