}
public void printOrigins() {
Transform transform = new Transform();
Vector3f origin = new Vector3f();
Matrix4f matrix = new Matrix4f();
bodies[BodyPart.BODYPART_HEAD.ordinal()].getMotionState()
.getWorldTransform(transform);
transform.getMatrix(matrix);
System.out.println("//BODYPART_HEAD");
System.out
.println("bodies[BodyPart.BODYPART_HEAD.ordinal()].getMotionState().getWorldTransform(transform);");
System.out.println("transform.set(new Matrix4f(" + matrix.m00 + "f,"
+ matrix.m01 + "f," + matrix.m02 + "f," + matrix.m03 + "f,"
+ matrix.m10 + "f," + matrix.m11 + "f," + matrix.m12 + "f,"
+ matrix.m13 + "f * this.scale," + matrix.m20 + "f,"
+ matrix.m21 + "f," + matrix.m22 + "f," + matrix.m23
+ "f * this.scale," + matrix.m30 + "f," + matrix.m31 + "f,"
+ matrix.m32 + "f," + matrix.m33 + "f * this.scale));");
System.out
.println("bodies[BodyPart.BODYPART_HEAD.ordinal()].setMotionState(new DefaultMotionState(transform));");
System.out.println();
bodies[BodyPart.BODYPART_SPINE.ordinal()].getMotionState()
.getWorldTransform(transform);
transform.getMatrix(matrix);
System.out.println("//BODYPART_SPINE");
System.out
.println("bodies[BodyPart.BODYPART_SPINE.ordinal()].getMotionState().getWorldTransform(transform);");
System.out.println("transform.setIdentity();");
System.out.println("transform.set(new Matrix4f(" + matrix.m00 + "f,"
+ matrix.m01 + "f," + matrix.m02 + "f," + matrix.m03 + "f,"
+ matrix.m10 + "f," + matrix.m11 + "f," + matrix.m12 + "f,"
+ matrix.m13 + "f * this.scale," + matrix.m20 + "f,"
+ matrix.m21 + "f," + matrix.m22 + "f," + matrix.m23
+ "f * this.scale," + matrix.m30 + "f," + matrix.m31 + "f,"
+ matrix.m32 + "f," + matrix.m33 + "f * this.scale));");
System.out
.println("bodies[BodyPart.BODYPART_SPINE.ordinal()].setMotionState(new DefaultMotionState(transform));");
System.out.println();
bodies[BodyPart.BODYPART_PELVIS.ordinal()].getMotionState()
.getWorldTransform(transform);
transform.getMatrix(matrix);
System.out.println("//BODYPART_PELVIS");
System.out
.println("bodies[BodyPart.BODYPART_PELVIS.ordinal()].getMotionState().getWorldTransform(transform);");
System.out.println("transform.setIdentity();");
System.out.println("transform.set(new Matrix4f(" + matrix.m00 + "f,"
+ matrix.m01 + "f," + matrix.m02 + "f," + matrix.m03 + "f,"
+ matrix.m10 + "f," + matrix.m11 + "f," + matrix.m12 + "f,"
+ matrix.m13 + "f * this.scale," + matrix.m20 + "f,"
+ matrix.m21 + "f," + matrix.m22 + "f," + matrix.m23
+ "f * this.scale," + matrix.m30 + "f," + matrix.m31 + "f,"
+ matrix.m32 + "f," + matrix.m33 + "f * this.scale));");
System.out
.println("bodies[BodyPart.BODYPART_PELVIS.ordinal()].setMotionState(new DefaultMotionState(transform));");
System.out.println();
bodies[BodyPart.BODYPART_LEFT_UPPER_LEG.ordinal()].getMotionState()
.getWorldTransform(transform);
transform.getMatrix(matrix);
System.out.println("//BODYPART_LEFT_UPPER_LEG");
System.out
.println("bodies[BodyPart.BODYPART_LEFT_UPPER_LEG.ordinal()].getMotionState().getWorldTransform(transform);");
System.out.println("transform.setIdentity();");
System.out.println("transform.set(new Matrix4f(" + matrix.m00 + "f,"
+ matrix.m01 + "f," + matrix.m02 + "f," + matrix.m03 + "f,"
+ matrix.m10 + "f," + matrix.m11 + "f," + matrix.m12 + "f,"
+ matrix.m13 + "f * this.scale," + matrix.m20 + "f,"
+ matrix.m21 + "f," + matrix.m22 + "f," + matrix.m23
+ "f * this.scale," + matrix.m30 + "f," + matrix.m31 + "f,"
+ matrix.m32 + "f," + matrix.m33 + "f * this.scale));");
System.out
.println("bodies[BodyPart.BODYPART_LEFT_UPPER_LEG.ordinal()].setMotionState(new DefaultMotionState(transform));");
System.out.println();
bodies[BodyPart.BODYPART_LEFT_LOWER_LEG.ordinal()].getMotionState()
.getWorldTransform(transform);
transform.getMatrix(matrix);
System.out.println("//BODYPART_LEFT_LOWER_LEG");
System.out
.println("bodies[BodyPart.BODYPART_LEFT_LOWER_LEG.ordinal()].getMotionState().getWorldTransform(transform);");
System.out.println("transform.setIdentity();");
System.out.println("transform.set(new Matrix4f(" + matrix.m00 + "f,"
+ matrix.m01 + "f," + matrix.m02 + "f," + matrix.m03 + "f,"
+ matrix.m10 + "f," + matrix.m11 + "f," + matrix.m12 + "f,"
+ matrix.m13 + "f * this.scale," + matrix.m20 + "f,"
+ matrix.m21 + "f," + matrix.m22 + "f," + matrix.m23
+ "f * this.scale," + matrix.m30 + "f," + matrix.m31 + "f,"
+ matrix.m32 + "f," + matrix.m33 + "f * this.scale));");
System.out
.println("bodies[BodyPart.BODYPART_LEFT_LOWER_LEG.ordinal()].setMotionState(new DefaultMotionState(transform));");
System.out.println();
bodies[BodyPart.BODYPART_RIGHT_UPPER_LEG.ordinal()].getMotionState()
.getWorldTransform(transform);
transform.getMatrix(matrix);
System.out.println("//RIGHT_UPPER_LEG");
System.out
.println("bodies[BodyPart.BODYPART_RIGHT_UPPER_LEG.ordinal()].getMotionState().getWorldTransform(transform);");
System.out.println("transform.setIdentity();");
System.out.println("transform.set(new Matrix4f(" + matrix.m00 + "f,"
+ matrix.m01 + "f," + matrix.m02 + "f," + matrix.m03 + "f,"
+ matrix.m10 + "f," + matrix.m11 + "f," + matrix.m12 + "f,"
+ matrix.m13 + "f * this.scale," + matrix.m20 + "f,"
+ matrix.m21 + "f," + matrix.m22 + "f," + matrix.m23
+ "f * this.scale," + matrix.m30 + "f," + matrix.m31 + "f,"
+ matrix.m32 + "f," + matrix.m33 + "f * this.scale));");
System.out
.println("bodies[BodyPart.BODYPART_RIGHT_UPPER_LEG.ordinal()].setMotionState(new DefaultMotionState(transform));");
System.out.println();
bodies[BodyPart.BODYPART_RIGHT_LOWER_LEG.ordinal()].getMotionState()
.getWorldTransform(transform);
transform.getMatrix(matrix);
System.out.println("//BODYPART_RIGHT_LOWER_LEG");
System.out
.println("bodies[BodyPart.BODYPART_RIGHT_LOWER_LEG.ordinal()].getMotionState().getWorldTransform(transform);");
System.out.println("transform.setIdentity();");
System.out.println("transform.set(new Matrix4f(" + matrix.m00 + "f,"
+ matrix.m01 + "f," + matrix.m02 + "f," + matrix.m03 + "f,"
+ matrix.m10 + "f," + matrix.m11 + "f," + matrix.m12 + "f,"
+ matrix.m13 + "f * this.scale," + matrix.m20 + "f,"
+ matrix.m21 + "f," + matrix.m22 + "f," + matrix.m23
+ "f * this.scale," + matrix.m30 + "f," + matrix.m31 + "f,"
+ matrix.m32 + "f," + matrix.m33 + "f * this.scale));");
System.out
.println("bodies[BodyPart.BODYPART_RIGHT_LOWER_LEG.ordinal()].setMotionState(new DefaultMotionState(transform));");
System.out.println();
bodies[BodyPart.BODYPART_RIGHT_FOOT.ordinal()].getMotionState()
.getWorldTransform(transform);
transform.getMatrix(matrix);
System.out.println("//BODYPART_RIGHT_FOOT");
System.out
.println("bodies[BodyPart.BODYPART_RIGHT_FOOT.ordinal()].getMotionState().getWorldTransform(transform);");
System.out.println("transform.setIdentity();");
System.out.println("transform.set(new Matrix4f(" + matrix.m00 + "f,"
+ matrix.m01 + "f," + matrix.m02 + "f," + matrix.m03 + "f,"
+ matrix.m10 + "f," + matrix.m11 + "f," + matrix.m12 + "f,"
+ matrix.m13 + "f * this.scale," + matrix.m20 + "f,"
+ matrix.m21 + "f," + matrix.m22 + "f," + matrix.m23
+ "f * this.scale," + matrix.m30 + "f," + matrix.m31 + "f,"
+ matrix.m32 + "f," + matrix.m33 + "f * this.scale));");
System.out
.println("bodies[BodyPart.BODYPART_RIGHT_FOOT.ordinal()].setMotionState(new DefaultMotionState(transform));");
System.out.println();
bodies[BodyPart.BODYPART_LEFT_FOOT.ordinal()].getMotionState()
.getWorldTransform(transform);
transform.getMatrix(matrix);
System.out.println("//BODYPART_LEFT_FOOT");
System.out
.println("bodies[BodyPart.BODYPART_LEFT_FOOT.ordinal()].getMotionState().getWorldTransform(transform);");
System.out.println("transform.setIdentity();");
System.out.println("transform.set(new Matrix4f(" + matrix.m00 + "f,"