Package com.jme3.bullet.objects.infos
Enum Class Cluster
- All Implemented Interfaces:
Serializable
,Comparable<Cluster>
,Constable
Enumerate the float-valued parameters in a soft-body cluster.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionangular damping coefficient (default=0, native field: m_adamping)linear damping coefficient (default=0, native field: m_ldamping)matching coefficient (default=0, native field: m_matching)maximum self-collision impulse (default=100, native field: m_maxSelfCollisionImpulse)node-damping coefficient (default=0, native field: m_ndamping)self-collision impulse factor (default=0.01, native field: m_selfCollisionImpulseFactor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canSet
(float value) Test whether this parameter can be set to the specified value.float
defValue()
Determine the default value for this parameter.float
maxValue()
Determine the maximum value for this parameter.float
minValue()
Determine the minimum value for this parameter.static Cluster
Returns the enum constant of this class with the specified name.static Cluster[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AngularDamping
angular damping coefficient (default=0, native field: m_adamping) -
LinearDamping
linear damping coefficient (default=0, native field: m_ldamping) -
Matching
matching coefficient (default=0, native field: m_matching) -
MaxSelfImpulse
maximum self-collision impulse (default=100, native field: m_maxSelfCollisionImpulse) -
NodeDamping
node-damping coefficient (default=0, native field: m_ndamping) -
SelfImpulse
self-collision impulse factor (default=0.01, native field: m_selfCollisionImpulseFactor)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
canSet
public boolean canSet(float value) Test whether this parameter can be set to the specified value.- Parameters:
value
- the desired parameter value- Returns:
- true if settable, otherwise false
-
defValue
public float defValue()Determine the default value for this parameter.- Returns:
- the default parameter value
-
maxValue
public float maxValue()Determine the maximum value for this parameter.- Returns:
- a maximum value, or Float.MAX_VALUE if there's no maximum
-
minValue
public float minValue()Determine the minimum value for this parameter.- Returns:
- a minimum value, or -Float.MAX_VALUE if there's no minimum
-