fix for issue #917
This commit is contained in:
parent
c1c08f3a74
commit
02ec12e454
@ -297,6 +297,7 @@ public class HingeJoint extends PhysicsJoint {
|
|||||||
protected void createJoint() {
|
protected void createJoint() {
|
||||||
objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, axisA, pivotB, axisB);
|
objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, axisA, pivotB, axisB);
|
||||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId));
|
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);
|
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(),
|
constraint = new HingeConstraint(nodeA.getObjectId(), nodeB.getObjectId(),
|
||||||
Converter.convert(pivotA), Converter.convert(pivotB),
|
Converter.convert(pivotA), Converter.convert(pivotB),
|
||||||
Converter.convert(axisA), Converter.convert(axisB));
|
Converter.convert(axisA), Converter.convert(axisB));
|
||||||
|
((HingeConstraint) constraint).setAngularOnly(angularOnly);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user