Enum Class Sbcp

java.lang.Object
java.lang.Enum<Sbcp>
com.jme3.bullet.objects.infos.Sbcp
All Implemented Interfaces:
Serializable, Comparable<Sbcp>, Constable

public enum Sbcp extends Enum<Sbcp>
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 Constants
    Enum Constant
    Description
    anchor 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 Type
    Method
    Description
    boolean
    canSet(float value)
    Test whether this parameter can be set to the specified value.
    float
    Determine the default value for this parameter.
    float
    Determine the maximum value for this parameter.
    float
    Determine the minimum value for this parameter.
    static Sbcp
    Returns the enum constant of this class with the specified name.
    static Sbcp[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • AnchorHardness

      public static final Sbcp AnchorHardness
      anchor hardness coefficient (≥0, ≤1, default=0.7, native field: kAHR)
    • ClusterKineticHardness

      public static final Sbcp ClusterKineticHardness
      cluster-versus-kinetic hardness coefficient (≥0, ≤1, default=1, native field: kSKHR_CL)
    • ClusterKineticSplit

      public static final Sbcp ClusterKineticSplit
      cluster-versus-kinetic impulse-split coefficient (≥0, ≤1, default=0.5, native field: kSK_SPLT_CL)
    • ClusterRigidHardness

      public static final Sbcp ClusterRigidHardness
      cluster-versus-rigidBody hardness coefficient (≥0, ≤1, default=0.1, native field: kSRHR_CL)
    • ClusterRigidSplit

      public static final Sbcp ClusterRigidSplit
      cluster-versus-rigidBody impulse-split coefficient (≥0, ≤1, default=0.5, native field: kSR_SPLT_CL)
    • ClusterSoftHardness

      public static final Sbcp ClusterSoftHardness
      cluster-versus-softBody hardness coefficient (≥0, ≤1, default=0.5, native field: kSSHR_CL)
    • ClusterSoftSplit

      public static final Sbcp ClusterSoftSplit
      cluster-versus-softBody impulse-split coefficient (≥0, ≤1, default=0.5, native field: kSS_SPLT_CL).
    • Damping

      public static final Sbcp Damping
      damping coefficient (≥0, ≤1, default=0, native field: kDP)
    • Drag

      public static final Sbcp Drag
      drag coefficient (≥0, default=0, native field: kDG)
    • DynamicFriction

      public static final Sbcp DynamicFriction
      dynamic friction coefficient (≥0, <1, default=0.2, native field: kDF)
    • KineticHardness

      public static final Sbcp KineticHardness
      contact hardness coefficient for static or kinematic rigid bodies (≥0, ≤1, default=0.1, native field: kKHR)
    • Lift

      public static final Sbcp Lift
      lift coefficient (≥0, default=0, native field: kLF)
    • MaxVolumeRatio

      public static final Sbcp MaxVolumeRatio
      maximum volume ratio for the pose (default=1, native field: maxvolume)
    • PoseMatching

      public static final Sbcp 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

      public static final Sbcp Pressure
      pressure coefficient (default=0, native field: kPR)
    • RigidHardness

      public static final Sbcp RigidHardness
      contact hardness coefficient for dynamic rigid bodies (≥0, ≤1, default=1, native field: kCHR)
    • SoftHardness

      public static final Sbcp SoftHardness
      soft-body contact hardness coefficient (≥0, ≤1, default=1, native field: kSHR)
    • TimeScale

      public static final Sbcp TimeScale
      time scale (default=1, native field: timescale)
    • VelocityCorrection

      public static final Sbcp VelocityCorrection
      velocity correction factor (Baumgarte) (default=1, native field: kVCF)
    • VolumeConservation

      public static final Sbcp VolumeConservation
      volume conservation coefficient (≥0, default=0, native field: kVC)
  • Method Details

    • values

      public static Sbcp[] 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

      public static Sbcp valueOf(String name)
      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 name
      NullPointerException - 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