com.jme3.bullet.joints
Class SixDofSpringJoint
java.lang.Object
com.jme3.bullet.joints.PhysicsJoint
com.jme3.bullet.joints.SixDofJoint
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.
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 ApivotB
- local translation of the joint connection point in node B
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)