public enum MotorParam extends java.lang.Enum<MotorParam>
RotationMotor.get(com.jme3.bullet.joints.motors.MotorParam),
RotationMotor.set(com.jme3.bullet.joints.motors.MotorParam, float),
TranslationMotor.get(com.jme3.bullet.joints.motors.MotorParam,
com.jme3.math.Vector3f),
TranslationMotor.set(com.jme3.bullet.joints.motors.MotorParam,
com.jme3.math.Vector3f)| Enum Constant and Description |
|---|
Bounce
restitution/bounce factor at the limits (m_bounce, default=0)
|
Damping
spring's viscous damping ratio (m_springDamping, default=0)
|
Equilibrium
spring's equilibrium point (m_equilibriumPoint, default=0)
|
LowerLimit
constraint lower limit (m_loLimit/m_lowerLimit, default=1[rot] or
0[translate])
|
MaxMotorForce
maximum motor force (m_maxMotorForce, default=6[rot] or 0[translate])
|
MotorCfm
constraint-force mixing parameter between limits (m_motorCFM, native
name: BT_CONSTRAINT_CFM, default=0)
|
MotorErp
error-reduction parameter between limits (m_motorERP, native name:
BT_CONSTRAINT_ERP, default=0.9)
|
ServoTarget
servo's target (m_servoTarget, default=0)
|
Stiffness
spring's stiffness (m_springStiffness, default=0)
|
StopCfm
constraint-force mixing parameter at limits (m_stopCFM, native name:
BT_CONSTRAINT_STOP_CFM, default=0)
|
StopErp
error-reduction parameter at limits (m_stopERP, native name:
BT_CONSTRAINT_STOP_ERP, default=0.2)
|
TargetVelocity
motor's target velocity (m_targetVelocity, default=0)
|
UpperLimit
constraint upper limit (m_hiLimit/m_upperLimit, default=-1[rot] or
0[translate])
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSet(float value)
Test whether this parameter can be set to the specified value.
|
float |
defaultForRotationMotor()
Determine the default value for this parameter in a RotationMotor.
|
float |
defaultForTranslationMotor()
Determine the default value for this parameter in a TranslationMotor.
|
float |
maxValue()
Determine the maximum value for this parameter.
|
float |
minValue()
Determine the minimum value for this parameter.
|
int |
nativeIndex()
Determine the parameter's index in native code.
|
static MotorParam |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MotorParam[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MotorParam Bounce
public static final MotorParam Damping
public static final MotorParam Equilibrium
public static final MotorParam LowerLimit
public static final MotorParam MaxMotorForce
public static final MotorParam MotorCfm
public static final MotorParam MotorErp
public static final MotorParam ServoTarget
public static final MotorParam Stiffness
public static final MotorParam StopCfm
public static final MotorParam StopErp
public static final MotorParam TargetVelocity
public static final MotorParam UpperLimit
public static MotorParam[] values()
for (MotorParam c : MotorParam.values()) System.out.println(c);
public static MotorParam valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean canSet(float value)
value - the desired parameter valuepublic float defaultForRotationMotor()
public float defaultForTranslationMotor()
public float maxValue()
public float minValue()
public int nativeIndex()