fix for issue #917

This commit is contained in:
Stephen Gold 2018-10-01 08:29:07 -07:00
parent c1c08f3a74
commit 02ec12e454
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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);
}
}