public class RotationalLimitMotor
extends java.lang.Object
| Constructor and Description | 
|---|
| RotationalLimitMotor(long motor)Instantiate a motor for the identified btRotationalLimitMotor. | 
| Modifier and Type | Method and Description | 
|---|---|
| float | getBounce()Read this motor's bounce. | 
| float | getDamping()Read this motor's damping. | 
| float | getERP()Read this motor's error tolerance at limits. | 
| float | getHiLimit()Read this motor's constraint upper limit. | 
| float | getLimitSoftness()Read this motor's limit softness. | 
| float | getLoLimit()Read this motor's constraint lower limit. | 
| float | getMaxLimitForce()Read the limit's maximum force. | 
| float | getMaxMotorForce()Read this motor's maximum force. | 
| long | getMotor()Read the id of the btRotationalLimitMotor. | 
| float | getTargetVelocity()Read this motor's target velocity. | 
| boolean | isEnableMotor()Test whether this motor is enabled. | 
| void | setBounce(float bounce)Alter this motor's bounce. | 
| void | setDamping(float damping)Alter this motor's damping. | 
| void | setEnableMotor(boolean enableMotor)Enable or disable this motor. | 
| void | setERP(float ERP)Alter this motor's error tolerance at limits. | 
| void | setHiLimit(float hiLimit)Alter this motor's constraint upper limit. | 
| void | setLimitSoftness(float limitSoftness)Alter this motor's limit softness. | 
| void | setLoLimit(float loLimit)Alter this motor's constraint lower limit. | 
| void | setMaxLimitForce(float maxLimitForce)Alter the limit's maximum force. | 
| void | setMaxMotorForce(float maxMotorForce)Alter this motor's maximum force. | 
| void | setTargetVelocity(float targetVelocity)Alter this motor's target velocity. | 
public RotationalLimitMotor(long motor)
motor - the unique identifier (not zero)public long getMotor()
public float getLoLimit()
public void setLoLimit(float loLimit)
loLimit - the desired limit valuepublic float getHiLimit()
public void setHiLimit(float hiLimit)
hiLimit - the desired limit valuepublic float getTargetVelocity()
public void setTargetVelocity(float targetVelocity)
targetVelocity - the desired target velocity (in radians per second)public float getMaxMotorForce()
public void setMaxMotorForce(float maxMotorForce)
maxMotorForce - the desired maximum force on the motorpublic float getMaxLimitForce()
public void setMaxLimitForce(float maxLimitForce)
maxLimitForce - the desired maximum force on the limitpublic float getDamping()
public void setDamping(float damping)
damping - the desired viscous damping ratio (0→no damping,
 1→critically damped, default=1)public float getLimitSoftness()
public void setLimitSoftness(float limitSoftness)
limitSoftness - the desired limit softnesspublic float getERP()
public void setERP(float ERP)
ERP - the desired error tolerance (>0)public float getBounce()
public void setBounce(float bounce)
bounce - the desired bounce (restitution factor)public boolean isEnableMotor()
public void setEnableMotor(boolean enableMotor)
enableMotor - true→enable, false→disable