public class RotationalLimitMotor extends Object
Modifier and Type | Field and Description |
---|---|
float |
accumulatedImpulse |
float |
bounce |
int |
currentLimit |
float |
currentLimitError |
float |
damping |
boolean |
enableMotor |
float |
ERP |
float |
hiLimit |
float |
limitSoftness |
float |
loLimit |
float |
maxLimitForce |
float |
maxMotorForce |
float |
targetVelocity |
Constructor and Description |
---|
RotationalLimitMotor() |
RotationalLimitMotor(RotationalLimitMotor limot) |
Modifier and Type | Method and Description |
---|---|
boolean |
isLimited()
Is limited?
|
boolean |
needApplyTorques()
Need apply correction?
|
float |
solveAngularLimits(float timeStep,
javax.vecmath.Vector3f axis,
float jacDiagABInv,
RigidBody body0,
RigidBody body1)
Apply the correction impulses for two bodies.
|
int |
testLimitValue(float test_value)
Calculates error.
|
public float loLimit
public float hiLimit
public float targetVelocity
public float maxMotorForce
public float maxLimitForce
public float damping
public float limitSoftness
public float ERP
public float bounce
public boolean enableMotor
public float currentLimitError
public int currentLimit
public float accumulatedImpulse
public RotationalLimitMotor()
public RotationalLimitMotor(RotationalLimitMotor limot)
Copyright © 2013. All Rights Reserved.