com.jme3.bullet.joints
Class Point2PointJoint
java.lang.Object
com.jme3.bullet.joints.PhysicsJoint
com.jme3.bullet.joints.Point2PointJoint
- All Implemented Interfaces:
- Savable
public class Point2PointJoint
- extends PhysicsJoint
From bullet manual:
Point to point constraint, also known as ball socket joint limits the translation
so that the local pivot points of 2 rigidbodies match in worldspace.
A chain of rigidbodies can be connected using this constraint.
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Point2PointJoint
public Point2PointJoint()
Point2PointJoint
public Point2PointJoint(PhysicsRigidBody nodeA,
PhysicsRigidBody nodeB,
Vector3f pivotA,
Vector3f pivotB)
- Parameters:
pivotA
- local translation of the joint connection point in node ApivotB
- local translation of the joint connection point in node B
setDamping
public void setDamping(float value)
setImpulseClamp
public void setImpulseClamp(float value)
setTau
public void setTau(float value)
getDamping
public float getDamping()
getImpulseClamp
public float getImpulseClamp()
getTau
public float getTau()
write
public void write(JmeExporter ex)
throws java.io.IOException
- Specified by:
write
in interface Savable
- Overrides:
write
in class PhysicsJoint
- Throws:
java.io.IOException
read
public void read(JmeImporter im)
throws java.io.IOException
- Specified by:
read
in interface Savable
- Overrides:
read
in class PhysicsJoint
- Throws:
java.io.IOException
createJoint
protected void createJoint()