com.jme3.bullet.joints
Class Point2PointJoint

java.lang.Object
  extended by com.jme3.bullet.joints.PhysicsJoint
      extended by 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.


Field Summary
 
Fields inherited from class com.jme3.bullet.joints.PhysicsJoint
collisionBetweenLinkedBodys, nodeA, nodeB, objectId, pivotA, pivotB
 
Constructor Summary
Point2PointJoint()
           
Point2PointJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB)
           
 
Method Summary
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)
           
 
Methods inherited from class com.jme3.bullet.joints.PhysicsJoint
destroy, finalize, getAppliedImpulse, getBodyA, getBodyB, getObjectId, getPivotA, getPivotB, isCollisionBetweenLinkedBodys, setCollisionBetweenLinkedBodys
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 A
pivotB - local translation of the joint connection point in node B
Method Detail

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()