2, 0
PHY SET JOINT TWIST MOTION 2, 0
PHY SET JOINT ACTOR A 2, 1, 10
PHY SET JOINT ACTOR B 2, 1, 11
 
PHY SIMULATE
 do
  PHY FETCH RESULTS
  
  //override limbs when actors are in place
  if (limbOverrideReady = 1)
     PHY SET LIMBS 1, 1
     limbOverrideReady = 0 //execute code block once only
  endif
  
  if (alive = 1)
     if spacekey() = 1
        setToRagdoll(1)
        limbOverrideReady = 1
        alive = 0
     endif
     move object 1, -0.02   
  endif
 
  PHY DEBUG RENDER
  PHY SIMULATE
  PHY UPD