Package com.jme3.bullet.objects.infos
Enum Class Sbcp
- All Implemented Interfaces:
Serializable
,Comparable<Sbcp>
,Constable
Enumerate the float-valued parameters in a SoftBodyConfig.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionanchor hardness coefficient (≥0, ≤1, default=0.7, native field: kAHR)cluster-versus-kinetic hardness coefficient (≥0, ≤1, default=1, native field: kSKHR_CL)cluster-versus-kinetic impulse-split coefficient (≥0, ≤1, default=0.5, native field: kSK_SPLT_CL)cluster-versus-rigidBody hardness coefficient (≥0, ≤1, default=0.1, native field: kSRHR_CL)cluster-versus-rigidBody impulse-split coefficient (≥0, ≤1, default=0.5, native field: kSR_SPLT_CL)cluster-versus-softBody hardness coefficient (≥0, ≤1, default=0.5, native field: kSSHR_CL)cluster-versus-softBody impulse-split coefficient (≥0, ≤1, default=0.5, native field: kSS_SPLT_CL).damping coefficient (≥0, ≤1, default=0, native field: kDP)drag coefficient (≥0, default=0, native field: kDG)dynamic friction coefficient (≥0, <1, default=0.2, native field: kDF)contact hardness coefficient for static or kinematic rigid bodies (≥0, ≤1, default=0.1, native field: kKHR)lift coefficient (≥0, default=0, native field: kLF)maximum volume ratio for the pose (default=1, native field: maxvolume)pose-matching coefficient: how strongly the soft body will tend to return to its default pose (≥0, ≤1, default=0, native field: kMT)pressure coefficient (default=0, native field: kPR)contact hardness coefficient for dynamic rigid bodies (≥0, ≤1, default=1, native field: kCHR)soft-body contact hardness coefficient (≥0, ≤1, default=1, native field: kSHR)time scale (default=1, native field: timescale)velocity correction factor (Baumgarte) (default=1, native field: kVCF)volume conservation coefficient (≥0, default=0, native field: kVC) -
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 Sbcp
Returns the enum constant of this class with the specified name.static Sbcp[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AnchorHardness
anchor hardness coefficient (≥0, ≤1, default=0.7, native field: kAHR) -
ClusterKineticHardness
cluster-versus-kinetic hardness coefficient (≥0, ≤1, default=1, native field: kSKHR_CL) -
ClusterKineticSplit
cluster-versus-kinetic impulse-split coefficient (≥0, ≤1, default=0.5, native field: kSK_SPLT_CL) -
ClusterRigidHardness
cluster-versus-rigidBody hardness coefficient (≥0, ≤1, default=0.1, native field: kSRHR_CL) -
ClusterRigidSplit
cluster-versus-rigidBody impulse-split coefficient (≥0, ≤1, default=0.5, native field: kSR_SPLT_CL) -
ClusterSoftHardness
cluster-versus-softBody hardness coefficient (≥0, ≤1, default=0.5, native field: kSSHR_CL) -
ClusterSoftSplit
cluster-versus-softBody impulse-split coefficient (≥0, ≤1, default=0.5, native field: kSS_SPLT_CL). -
Damping
damping coefficient (≥0, ≤1, default=0, native field: kDP) -
Drag
drag coefficient (≥0, default=0, native field: kDG) -
DynamicFriction
dynamic friction coefficient (≥0, <1, default=0.2, native field: kDF) -
KineticHardness
contact hardness coefficient for static or kinematic rigid bodies (≥0, ≤1, default=0.1, native field: kKHR) -
Lift
lift coefficient (≥0, default=0, native field: kLF) -
MaxVolumeRatio
maximum volume ratio for the pose (default=1, native field: maxvolume) -
PoseMatching
pose-matching coefficient: how strongly the soft body will tend to return to its default pose (≥0, ≤1, default=0, native field: kMT) -
Pressure
pressure coefficient (default=0, native field: kPR) -
RigidHardness
contact hardness coefficient for dynamic rigid bodies (≥0, ≤1, default=1, native field: kCHR) -
SoftHardness
soft-body contact hardness coefficient (≥0, ≤1, default=1, native field: kSHR) -
TimeScale
time scale (default=1, native field: timescale) -
VelocityCorrection
velocity correction factor (Baumgarte) (default=1, native field: kVCF) -
VolumeConservation
volume conservation coefficient (≥0, default=0, native field: kVC)
-
-
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
-