public class ConeJoint extends PhysicsJoint
Modifier and Type | Field and Description |
---|---|
protected boolean |
angularOnly |
protected Matrix3f |
rotA |
protected Matrix3f |
rotB |
protected float |
swingSpan1 |
protected float |
swingSpan2 |
protected float |
twistSpan |
collisionBetweenLinkedBodys, constraint, nodeA, nodeB, pivotA, pivotB
Modifier | Constructor and Description |
---|---|
protected |
ConeJoint() |
|
ConeJoint(PhysicsRigidBody nodeA,
PhysicsRigidBody nodeB,
Vector3f pivotA,
Vector3f pivotB) |
|
ConeJoint(PhysicsRigidBody nodeA,
PhysicsRigidBody nodeB,
Vector3f pivotA,
Vector3f pivotB,
Matrix3f rotA,
Matrix3f rotB) |
Modifier and Type | Method and Description |
---|---|
protected void |
createJoint() |
void |
read(JmeImporter im) |
void |
setAngularOnly(boolean value) |
void |
setLimit(float swingSpan1,
float swingSpan2,
float twistSpan) |
void |
write(JmeExporter ex) |
destroy, getAppliedImpulse, getBodyA, getBodyB, getObjectId, getPivotA, getPivotB, isCollisionBetweenLinkedBodys, setCollisionBetweenLinkedBodys
protected Matrix3f rotA
protected Matrix3f rotB
protected float swingSpan1
protected float swingSpan2
protected float twistSpan
protected boolean angularOnly
protected ConeJoint()
public ConeJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB)
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 Bpublic ConeJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, Matrix3f rotA, Matrix3f rotB)
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, alias created)rotB
- the joint orientation in B's local coordinates (rotation
matrix, alias created)public void setLimit(float swingSpan1, float swingSpan2, float twistSpan)
public void setAngularOnly(boolean value)
public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
write
in class PhysicsJoint
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
read
in class PhysicsJoint
java.io.IOException
protected void createJoint()