Enum Class Cluster

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

public enum Cluster extends Enum<Cluster>
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 Constants
    Enum Constant
    Description
    angular 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 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 Cluster
    Returns the enum constant of this class with the specified name.
    static Cluster[]
    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

    • AngularDamping

      public static final Cluster AngularDamping
      angular damping coefficient (default=0, native field: m_adamping)
    • LinearDamping

      public static final Cluster LinearDamping
      linear damping coefficient (default=0, native field: m_ldamping)
    • Matching

      public static final Cluster Matching
      matching coefficient (default=0, native field: m_matching)
    • MaxSelfImpulse

      public static final Cluster MaxSelfImpulse
      maximum self-collision impulse (default=100, native field: m_maxSelfCollisionImpulse)
    • NodeDamping

      public static final Cluster NodeDamping
      node-damping coefficient (default=0, native field: m_ndamping)
    • SelfImpulse

      public static final Cluster SelfImpulse
      self-collision impulse factor (default=0.01, native field: m_selfCollisionImpulseFactor)
  • Method Details

    • values

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