public class RotationalLimitMotor extends NativePhysicsObject
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
loggerN| Constructor and Description |
|---|
RotationalLimitMotor(long nativeId)
Instantiate a motor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getAccumulatedImpulse()
Return the accumulated impulse (native field: m_accumulatedImpulse).
|
float |
getAngle()
Return this motor's current rotation angle (native field:
m_currentPosition).
|
float |
getDamping()
Return this motor's damping (native field: m_damping).
|
float |
getERP()
Return this motor's error-reduction parameter at the limits (native
field: m_stopERP).
|
float |
getLimitSoftness()
Return this motor's limit softness (native field: m_limitSoftness).
|
float |
getLowerLimit()
Return this motor's constraint lower limit (native field: m_loLimit).
|
float |
getMaxLimitForce()
Return the limit maximum force (native field: m_maxLimitForce).
|
float |
getMaxMotorForce()
Return this motor's maximum force for normal conditions (native field:
m_maxMotorForce).
|
float |
getNormalCFM()
Return this motor's constraint-force mixing parameter for normal
conditions (native field: m_normalCFM).
|
float |
getRestitution()
Return this motor's restitution at the limits (native field: m_bounce).
|
float |
getStopCFM()
Return this motor's constraint-force mixing parameter at the limits
(native field: m_stopCFM).
|
float |
getTargetVelocity()
Return this motor's target velocity (native field: m_targetVelocity).
|
float |
getUpperLimit()
Return this motor's constraint upper limit (native field: m_hiLimit).
|
boolean |
isEnableMotor()
Test whether this motor is enabled (native field: m_enableMotor).
|
void |
setAccumulatedImpulse(float accumulatedImpulse)
Alter the accumulated impulse (native field: m_accumulatedImpulse).
|
void |
setDamping(float damping)
Alter this motor's damping (native field: m_damping).
|
void |
setEnableMotor(boolean enableMotor)
Enable or disable this motor (native field: m_enableMotor).
|
void |
setERP(float erp)
Alter this motor's error-reduction parameter at the limits (native field:
m_stopERP).
|
void |
setLimitSoftness(float limitSoftness)
Alter this motor's limit softness (native field: m_limitSoftness).
|
void |
setLowerLimit(float lowerLimit)
Alter this motor's constraint lower limit (native field: m_loLimit).
|
void |
setMaxLimitForce(float maxLimitForce)
Alter the limit maximum force (native field: m_maxLimitForce).
|
void |
setMaxMotorForce(float maxMotorForce)
Alter this motor's maximum force (native field: m_maxMotorForce).
|
void |
setNormalCFM(float cfm)
Alter this motor's constraint-force mixing parameter for normal
conditions (native field: m_normalCFM).
|
void |
setRestitution(float restitution)
Alter this motor's restitution at the limits (native field: m_bounce).
|
void |
setStopCFM(float cfm)
Alter this motor's constraint-force mixing parameter at the limits
(native field: m_stopCFM).
|
void |
setTargetVelocity(float targetVelocity)
Alter this motor's target velocity (native field: m_targetVelocity).
|
void |
setUpperLimit(float upperLimit)
Alter this motor's constraint upper limit (native field: m_hiLimit).
|
compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeId, setNativeIdNotTracked, toString, unassignNativeObjectpublic static final java.util.logging.Logger logger
public RotationalLimitMotor(long nativeId)
nativeId - the ID of the pre-existing btRotationalLimitMotor (not
zero)public float getAccumulatedImpulse()
public float getAngle()
public float getDamping()
public float getERP()
public float getLimitSoftness()
public float getLowerLimit()
public float getMaxLimitForce()
public float getMaxMotorForce()
public float getNormalCFM()
public float getRestitution()
public float getStopCFM()
public float getTargetVelocity()
public float getUpperLimit()
public boolean isEnableMotor()
public void setAccumulatedImpulse(float accumulatedImpulse)
accumulatedImpulse - the desired total (default=0)public void setDamping(float damping)
damping - the desired viscous damping ratio (0→no damping,
1→critically damped, default=1)public void setEnableMotor(boolean enableMotor)
enableMotor - true→enable, false→disable (default=false)public void setERP(float erp)
erp - the desired error tolerance at limits (≥0, default=0.2)public void setLimitSoftness(float limitSoftness)
limitSoftness - the desired limit softness (or relaxation factor)
(default=0.5)public void setLowerLimit(float lowerLimit)
lowerLimit - the desired limit value (default=1)public void setMaxLimitForce(float maxLimitForce)
maxLimitForce - the desired maximum force on the limit (default=300)public void setMaxMotorForce(float maxMotorForce)
maxMotorForce - the desired maximum force (default=6)public void setNormalCFM(float cfm)
cfm - the desired mixing parameter (≥0, default=0)public void setRestitution(float restitution)
restitution - the desired restitution (bounce) factor (default=0)public void setStopCFM(float cfm)
cfm - the desired mixing parameter (≥0, default=0)public void setTargetVelocity(float targetVelocity)
targetVelocity - the desired target velocity (in radians per second,
default=0)public void setUpperLimit(float upperLimit)
upperLimit - the desired limit value (default=-1)