public class TranslationalLimitMotor extends NativePhysicsObject
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
loggerN| Constructor and Description |
|---|
TranslationalLimitMotor(long nativeId)
Instantiate a motor.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3f |
getAccumulatedImpulse(Vector3f storeResult)
Copy the accumulated impulse (native field: m_accumulatedImpulse).
|
float |
getDamping()
Return this motor's damping (native field: m_damping).
|
Vector3f |
getERP(Vector3f storeResult)
Copy this motor's error-reduction parameters at the limits (native field:
m_stopERP).
|
float |
getLimitSoftness()
Return this motor's limit softness (native field: m_limitSoftness).
|
Vector3f |
getLowerLimit(Vector3f storeResult)
Copy this motor's constraint lower limits (native field: m_lowerLimit).
|
Vector3f |
getMaxMotorForce(Vector3f storeResult)
Copy this motor's maximum motor forces for normal conditions (native
field: m_maxMotorForce).
|
Vector3f |
getNormalCFM(Vector3f storeResult)
Copy this motor's constraint-force mixing parameters for normal
conditions (native field: m_normalCFM).
|
Vector3f |
getOffset(Vector3f storeResult)
Return the offset of the constraint frames (native field:
m_currentLinearDiff).
|
float |
getRestitution()
Return this motor's restitution at the limits (native field:
m_restitution).
|
Vector3f |
getStopCFM(Vector3f storeResult)
Copy this motor's constraint-force mixing parameters at the limits
(native field: m_stopCFM).
|
Vector3f |
getTargetVelocity(Vector3f storeResult)
Copy this motor's target velocity (native field: m_targetVelocity).
|
Vector3f |
getUpperLimit(Vector3f storeResult)
Copy this motor's constraint upper limits (native field: m_upperLimit).
|
boolean |
isEnabled(int axisIndex)
Test whether the indexed axis is enabled (native field: m_enableMotor).
|
void |
setAccumulatedImpulse(Vector3f accumulatedImpulse)
Alter the accumulated impulse (native field: m_accumulatedImpulse).
|
void |
setDamping(float damping)
Alter this motor's damping (native field: m_damping).
|
void |
setEnabled(int axisIndex,
boolean enableMotor)
Enable or disable the indexed axis (native field: m_enableMotor).
|
void |
setERP(Vector3f erp)
Alter this motor's error-reduction parameters at the limits (native
field: m_stopERP).
|
void |
setLimitSoftness(float limitSoftness)
Alter the limit softness (native field: m_limitSoftness).
|
void |
setLowerLimit(Vector3f lowerLimit)
Alter this motor's constraint lower limits (native field: m_lowerLimit).
|
void |
setMaxMotorForce(Vector3f maxForce)
Alter this motor's maximum forces (native field: m_maxMotorForce).
|
void |
setNormalCFM(Vector3f cfm)
Alter this motor's constraint-force mixing parameters for normal
conditions (native field: m_normalCFM).
|
void |
setRestitution(float restitution)
Alter this motor's restitution at the limits (native field:
m_restitution).
|
void |
setStopCFM(Vector3f cfm)
Alter this motor's constraint-force mixing parameters at the limits
(native field: m_stopCFM).
|
void |
setTargetVelocity(Vector3f velocity)
Alter this motor's target velocity (native field: m_targetVelocity).
|
void |
setUpperLimit(Vector3f upperLimit)
Alter this motor's constraint upper limits (native field: m_upperLimit).
|
compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeId, setNativeIdNotTracked, toString, unassignNativeObjectpublic static final java.util.logging.Logger logger
public TranslationalLimitMotor(long nativeId)
nativeId - the ID of the pre-existing btTranslationalLimitMotor (not
zero)public Vector3f getAccumulatedImpulse(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public float getDamping()
public Vector3f getERP(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public float getLimitSoftness()
public Vector3f getLowerLimit(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f getMaxMotorForce(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f getNormalCFM(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f getOffset(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public float getRestitution()
public Vector3f getStopCFM(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f getTargetVelocity(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f getUpperLimit(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public boolean isEnabled(int axisIndex)
axisIndex - which axis: 0→X, 1→Y, 2→Zpublic void setAccumulatedImpulse(Vector3f accumulatedImpulse)
accumulatedImpulse - the desired vector (not null, unaffected,
default=(0,0,0))public void setDamping(float damping)
damping - the desired viscous damping ratio (0→no damping,
1→critically damped, default=1)public void setEnabled(int axisIndex,
boolean enableMotor)
axisIndex - which axis: 0→X, 1→Y, 2→ZenableMotor - true→enable, false→disable (default=false)public void setERP(Vector3f erp)
erp - the desired error-reduction parameter parameter for each axis
(not null, unaffected, default=(0.2,0.2,0.2))public void setLimitSoftness(float limitSoftness)
limitSoftness - the desired limit softness (default=0.7)public void setLowerLimit(Vector3f lowerLimit)
lowerLimit - the desired limit value for each axis (unaffected, not
null, default=(0,0,0))public void setMaxMotorForce(Vector3f maxForce)
maxForce - the desired maximum force for each axis (not null,
unaffected, default=(0,0,0))public void setNormalCFM(Vector3f cfm)
cfm - the desired mixing parameter for each axis (not null,
unaffected, default=(0,0,0))public void setRestitution(float restitution)
restitution - the desired restitution (bounce) factor (default=0.5)public void setStopCFM(Vector3f cfm)
cfm - the desired mixing parameter for each axis (not null,
unaffected, default=(0,0,0))public void setTargetVelocity(Vector3f velocity)
velocity - the desired velocity vector (not null, unaffected,
default=(0,0,0))public void setUpperLimit(Vector3f upperLimit)
upperLimit - the desired limit value for each axis (unaffected, not
null, default=(0,0,0))