|
|
@ -155,9 +155,13 @@ public class TestBoneRagdoll extends SimpleApplication implements RagdollCollisi |
|
|
|
q.fromAngleAxis(angles[1], Vector3f.UNIT_Y); |
|
|
|
q.fromAngleAxis(angles[1], Vector3f.UNIT_Y); |
|
|
|
//q.lookAt(model.getLocalRotation().toRotationMatrix().getColumn(2), Vector3f.UNIT_Y);
|
|
|
|
//q.lookAt(model.getLocalRotation().toRotationMatrix().getColumn(2), Vector3f.UNIT_Y);
|
|
|
|
model.setLocalRotation(q); |
|
|
|
model.setLocalRotation(q); |
|
|
|
// animChannel.setAnim("StandUpBack");
|
|
|
|
System.out.println(angles[0]+ " "+angles[2]); |
|
|
|
ragdoll.blendControlToAnim("StandUpFront",animChannel); |
|
|
|
if(angles[0]<0){ |
|
|
|
// animChannel.setAnim("StandUpFront",0.00f);
|
|
|
|
ragdoll.blendControlToAnim("StandUpBack",animChannel); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
ragdoll.blendControlToAnim("StandUpFront",animChannel); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (name.equals("bullet+") && isPressed) { |
|
|
|
if (name.equals("bullet+") && isPressed) { |
|
|
|
bulletSize += 0.1f; |
|
|
|
bulletSize += 0.1f; |
|
|
|