com.jme3.bullet.joints
Class ConeJoint

java.lang.Object
  extended by com.jme3.bullet.joints.PhysicsJoint
      extended by com.jme3.bullet.joints.ConeJoint
All Implemented Interfaces:
Savable

public class ConeJoint
extends PhysicsJoint

From bullet manual:
To create ragdolls, the conve twist constraint is very useful for limbs like the upper arm. It is a special point to point constraint that adds cone and twist axis limits. The x-axis serves as twist axis.


Field Summary
protected  boolean angularOnly
           
protected  Matrix3f rotA
           
protected  Matrix3f rotB
           
protected  float swingSpan1
           
protected  float swingSpan2
           
protected  float twistSpan
           
 
Fields inherited from class com.jme3.bullet.joints.PhysicsJoint
collisionBetweenLinkedBodys, nodeA, nodeB, objectId, pivotA, pivotB
 
Constructor Summary
ConeJoint()
           
ConeJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB)
           
ConeJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, Matrix3f rotA, Matrix3f rotB)
           
 
Method Summary
protected  void createJoint()
           
 void read(JmeImporter im)
           
 void setAngularOnly(boolean value)
           
 void setLimit(float swingSpan1, float swingSpan2, float twistSpan)
           
 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
 

Field Detail

rotA

protected Matrix3f rotA

rotB

protected Matrix3f rotB

swingSpan1

protected float swingSpan1

swingSpan2

protected float swingSpan2

twistSpan

protected float twistSpan

angularOnly

protected boolean angularOnly
Constructor Detail

ConeJoint

public ConeJoint()

ConeJoint

public ConeJoint(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

ConeJoint

public ConeJoint(PhysicsRigidBody nodeA,
                 PhysicsRigidBody nodeB,
                 Vector3f pivotA,
                 Vector3f pivotB,
                 Matrix3f rotA,
                 Matrix3f rotB)
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

setLimit

public void setLimit(float swingSpan1,
                     float swingSpan2,
                     float twistSpan)

setAngularOnly

public void setAngularOnly(boolean value)

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