dFloat ang_point[3];
dFloat ang_rotation[3];
vec_for_bone(temp.x,my,"Bone9");
ent=ent_create("box_a.mdl",vector(temp.x,temp.y,temp.z+10),bone);
bone_t = newton_addentity(ent,0,NEWTON_BOX,onforceandtorque);
you=ent_create("box_a.mdl",vector(temp.x,temp.y,temp.z),bone);
ragdoll_ent=newton_addentity(you,70,NEWTON_BOX,onforceandtorque);
ang_point[0] = temp.x;
ang_point[1] = temp.y;
ang_point[2] = temp.z;
ang_rotation[0] = 0;
ang_rotation[1] = 1;
ang_rotation[2] = 0; NewtonConstraintCreateHinge(nworld,ang_point[3],ang_rotation,bone_t,ragdoll_ent);