com.jme3.bullet.joints
Class SixDofSpringJoint

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

public class SixDofSpringJoint
extends SixDofJoint

From bullet manual:
This generic constraint can emulate a variety of standard constraints, by configuring each of the 6 degrees of freedom (dof). The first 3 dof axis are linear axis, which represent translation of rigidbodies, and the latter 3 dof axis represent the angular motion. Each axis can be either locked, free or limited. On construction of a new btGeneric6DofConstraint, all axis are locked. Afterwards the axis can be reconfigured. Note that several combinations that include free and/or limited angular degrees of freedom are undefined.


Field Summary
 
Fields inherited from class com.jme3.bullet.joints.PhysicsJoint
collisionBetweenLinkedBodys, nodeA, nodeB, objectId, pivotA, pivotB
 
Constructor Summary
SixDofSpringJoint()
           
SixDofSpringJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, Matrix3f rotA, Matrix3f rotB, boolean useLinearReferenceFrameA)
           
 
Method Summary
 void enableSpring(int index, boolean onOff)
           
 void setDamping(int index, float damping)
           
 void setEquilibriumPoint()
           
 void setEquilibriumPoint(int index)
           
 void setStiffness(int index, float stiffness)
           
 
Methods inherited from class com.jme3.bullet.joints.SixDofJoint
getRotationalLimitMotor, getTranslationalLimitMotor, read, setAngularLowerLimit, setAngularUpperLimit, setLinearLowerLimit, setLinearUpperLimit, write
 
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

SixDofSpringJoint

public SixDofSpringJoint()

SixDofSpringJoint

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

enableSpring

public void enableSpring(int index,
                         boolean onOff)

setStiffness

public void setStiffness(int index,
                         float stiffness)

setDamping

public void setDamping(int index,
                       float damping)

setEquilibriumPoint

public void setEquilibriumPoint()

setEquilibriumPoint

public void setEquilibriumPoint(int index)