ATE
  
  move camera 0, -0.01
  sync
 loop
PHY STOP
END

FUNCTION makeJoint(id, jointDesc, objectID, limbA, limbB )
    PHY SET JOINT ACTOR A jointDesc, objectID, limbA
    PHY SET JOINT ACTOR B jointDesc, objectID, limbB
    x# = limb position x (objectID, limbA)
    y# = limb position y (objectID, limbA)
    z# = limb position z (objectID, limbA)
    PHY SET JOINT GLOBAL ANCHOR jointDesc, x#, y#, z#
    PHY MAKE JOINT id, jointDesc  
ENDFUNCTION


FUNCTION setToRagdoll( ninjaID )
   PHY SET ACTORS TO LIMB