com.bulletphysics.dynamics.constraintsolver
Class TranslationalLimitMotor
java.lang.Object
com.bulletphysics.dynamics.constraintsolver.TranslationalLimitMotor
public class TranslationalLimitMotor
- extends Object
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
TranslationalLimitMotor
public TranslationalLimitMotor()
TranslationalLimitMotor
public TranslationalLimitMotor(TranslationalLimitMotor other)
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)