public class Point2PointJoint extends PhysicsJoint
collisionBetweenLinkedBodys, constraint, nodeA, nodeB, pivotA, pivotB
Modifier | Constructor and Description |
---|---|
protected |
Point2PointJoint() |
|
Point2PointJoint(PhysicsRigidBody nodeA,
PhysicsRigidBody nodeB,
Vector3f pivotA,
Vector3f pivotB) |
Modifier and Type | Method and Description |
---|---|
protected void |
createJoint() |
float |
getDamping() |
float |
getImpulseClamp() |
float |
getTau() |
void |
read(JmeImporter im) |
void |
setDamping(float value) |
void |
setImpulseClamp(float value) |
void |
setTau(float value) |
void |
write(JmeExporter ex) |
destroy, getAppliedImpulse, getBodyA, getBodyB, getObjectId, getPivotA, getPivotB, isCollisionBetweenLinkedBodys, setCollisionBetweenLinkedBodys
protected Point2PointJoint()
public Point2PointJoint(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 void setDamping(float value)
public void setImpulseClamp(float value)
public void setTau(float value)
public float getDamping()
public float getImpulseClamp()
public float getTau()
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()