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)
pivotA
- local translation of the joint connection point in node ApivotB
- local translation of the joint connection point in node Bpublic SixDofJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, boolean useLinearReferenceFrameA)
pivotA
- local translation of the joint connection point in node ApivotB
- local translation of the joint connection point in node 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