t++;
}

void setToRagdoll(int ninjaID){
	phySetActorsToLimbs(ninjaID);
	//Physics simulates one frame behind so we need to set
	//limbs to physics control when limbs are in correct place
	//phySetLimbs(ninjaID, true);

    makeJoint(ninjaID, 1, 2);
	makeJoint(ninjaID, 3, 2);
	makeJoint(ninjaID, 4, 3);
    makeJoint(ninjaID, 5, 2);
	makeJoint(ninjaID, 6, 5);
	makeJoint(ninjaID, 7, 6);
    makeJoint(ninjaID, 8, 2);
	makeJoint(ninjaID, 9, 8);
	makeJoint(ninjaID, 10, 9);
    makeJoint(ninjaID, 12, 1);
	makeJoin