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)
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)
pivotA
- local translation of the joint connection point in node ApivotB
- local translation of the joint connection point in node Bpublic 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()