com.bulletphysics.dynamics.constraintsolver
Class TranslationalLimitMotor

java.lang.Object
  extended by com.bulletphysics.dynamics.constraintsolver.TranslationalLimitMotor

public class TranslationalLimitMotor
extends Object


Field Summary
 Vector3f accumulatedImpulse
           
 float damping
           
 float limitSoftness
           
 Vector3f lowerLimit
           
 float restitution
           
 Vector3f upperLimit
           
 
Constructor Summary
TranslationalLimitMotor()
           
TranslationalLimitMotor(TranslationalLimitMotor other)
           
 
Method Summary
 boolean isLimited(int limitIndex)
          Test limit.
 float solveLinearAxis(float timeStep, float jacDiagABInv, RigidBody body1, Vector3f pointInA, RigidBody body2, Vector3f pointInB, int limit_index, Vector3f axis_normal_on_a, Vector3f anchorPos)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lowerLimit

public final Vector3f lowerLimit

upperLimit

public final Vector3f upperLimit

accumulatedImpulse

public final Vector3f accumulatedImpulse

limitSoftness

public float limitSoftness

damping

public float damping

restitution

public float restitution
Constructor Detail

TranslationalLimitMotor

public TranslationalLimitMotor()

TranslationalLimitMotor

public TranslationalLimitMotor(TranslationalLimitMotor other)
Method Detail

isLimited

public boolean isLimited(int limitIndex)
Test limit.

- free means upper < lower,
- locked means upper == lower
- limited means upper > lower
- limitIndex: first 3 are linear, next 3 are angular


solveLinearAxis

public float solveLinearAxis(float timeStep,
                             float jacDiagABInv,
                             RigidBody body1,
                             Vector3f pointInA,
                             RigidBody body2,
                             Vector3f pointInB,
                             int limit_index,
                             Vector3f axis_normal_on_a,
                             Vector3f anchorPos)