Enum Class ColliderShape.Type

java.lang.Object
java.lang.Enum<ColliderShape.Type>
jsim.collision.ColliderShape.Type
All Implemented Interfaces:
Serializable, Comparable<ColliderShape.Type>, Constable
Enclosing class:
ColliderShape

public static enum ColliderShape.Type extends Enum<ColliderShape.Type>
Shape type tag for fast dispatch in narrowphase.
  • Enum Constant Details

    • SPHERE

      public static final ColliderShape.Type SPHERE
      Sphere defined by a radius.
    • BOX

      public static final ColliderShape.Type BOX
      Axis-aligned box defined by half-extents.
    • PLANE

      public static final ColliderShape.Type PLANE
      Infinite half-space defined by a normal and offset.
  • Method Details

    • values

      public static ColliderShape.Type[] 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 ColliderShape.Type 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