public class SixDofJoint extends PhysicsJoint
collisionBetweenLinkedBodys, constraint, nodeA, nodeB, pivotA, pivotB
Modifier | Constructor and Description |
---|---|
protected |
SixDofJoint() |
|
SixDofJoint(PhysicsRigidBody nodeA,
PhysicsRigidBody nodeB,
Vector3f pivotA,
Vector3f pivotB,
boolean useLinearReferenceFrameA) |
|
SixDofJoint(PhysicsRigidBody nodeA,
PhysicsRigidBody nodeB,
Vector3f pivotA,
Vector3f pivotB,
Matrix3f rotA,
Matrix3f rotB,
boolean useLinearReferenceFrameA) |
Modifier and Type | Method and Description |
---|---|
RotationalLimitMotor |
getRotationalLimitMotor(int index)
returns one of the three RotationalLimitMotors of this 6DofJoint which
allow manipulating the rotational axes
|
TranslationalLimitMotor |
getTranslationalLimitMotor()
returns the TranslationalLimitMotor of this 6DofJoint which allows
manipulating the translational axis
|
void |
read(JmeImporter im) |
void |
setAngularLowerLimit(Vector3f vector) |
void |
setAngularUpperLimit(Vector3f vector) |
void |
setLinearLowerLimit(Vector3f vector) |
void |
setLinearUpperLimit(Vector3f vector) |
void |
write(JmeExporter ex) |
destroy, getAppliedImpulse, getBodyA, getBodyB, getObjectId, getPivotA, getPivotB, isCollisionBetweenLinkedBodys, setCollisionBetweenLinkedBodys
protected SixDofJoint()
public SixDofJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, Matrix3f rotA, Matrix3f rotB, boolean useLinearReferenceFrameA)
nodeA
- the body for the A end (not null, alias created)nodeB
- the body for the B end (not null, alias created)pivotA
- local translation of the joint connection point in node ApivotB
- local translation of the joint connection point in node BrotA
- the joint orientation in A's local coordinates (rotation
matrix, unaffected)rotB
- the joint orientation in B's local coordinates (rotation
matrix, unaffected)useLinearReferenceFrameA
- true→use body A, false→use bodypublic SixDofJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, boolean useLinearReferenceFrameA)
nodeA
- the body for the A end (not null, alias created)nodeB
- the body for the B end (not null, alias created)pivotA
- local translation of the joint connection point in node ApivotB
- local translation of the joint connection point in node BuseLinearReferenceFrameA
- true→use body A, false→use body
Bpublic TranslationalLimitMotor getTranslationalLimitMotor()
public RotationalLimitMotor getRotationalLimitMotor(int index)
index
- the index of the RotationalLimitMotorpublic void setLinearUpperLimit(Vector3f vector)
public void setLinearLowerLimit(Vector3f vector)
public void setAngularUpperLimit(Vector3f vector)
public void setAngularLowerLimit(Vector3f vector)
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
read
in class PhysicsJoint
java.io.IOException
public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
write
in class PhysicsJoint
java.io.IOException