fix for issue #917

accellbaker
Stephen Gold 6 years ago
parent c1c08f3a74
commit 02ec12e454
  1. 1
      jme3-bullet/src/main/java/com/jme3/bullet/joints/HingeJoint.java
  2. 1
      jme3-jbullet/src/main/java/com/jme3/bullet/joints/HingeJoint.java

@ -297,6 +297,7 @@ public class HingeJoint extends PhysicsJoint {
protected void createJoint() {
objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, axisA, pivotB, axisB);
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId));
setAngularOnly(objectId, angularOnly);
}
private native long createJoint(long objectIdA, long objectIdB, Vector3f pivotA, Vector3f axisA, Vector3f pivotB, Vector3f axisB);

@ -172,5 +172,6 @@ public class HingeJoint extends PhysicsJoint {
constraint = new HingeConstraint(nodeA.getObjectId(), nodeB.getObjectId(),
Converter.convert(pivotA), Converter.convert(pivotB),
Converter.convert(axisA), Converter.convert(axisB));
((HingeConstraint) constraint).setAngularOnly(angularOnly);
}
}

Loading…
Cancel
Save