/H5>
<pre class = "dbpro">
FUNCTION setToRagdoll( ninjaID )
   PHY SET ACTORS TO LIMBS ninjaID 

   jointDescOne = 1
   jointDescTwo = 2
   id = 1
   makeJoint(id, jointDescOne, ninjaID, 1, 2)
   id = id + 1
   makeJoint(id, jointDescOne, ninjaID, 3, 2)
   id = id + 1
   makeJoint(id, jointDescOne, ninjaID, 4, 3)
   id = id + 1
   makeJoint(id, jointDescOne, ninjaID, 5, 2)
   id = id + 1   
   makeJoint(id, jointDescOne, ninjaID, 6, 5)
   id = id + 1   
   makeJoint(id, jointDescOne, ninjaID, 7, 6)
   id = 