Enum Class ShapeHeuristic

java.lang.Object
java.lang.Enum<ShapeHeuristic>
com.jme3.bullet.animation.ShapeHeuristic
All Implemented Interfaces:
Serializable, Comparable<ShapeHeuristic>, Constable

public enum ShapeHeuristic extends Enum<ShapeHeuristic>
Enumerate algorithms to create a CollisionShape for a PhysicsLink.
  • Enum Constant Details

    • AABB

      public static final ShapeHeuristic AABB
      axis-aligned bounding box
    • MinBox

      public static final ShapeHeuristic MinBox
      minimal bounding box (not axis-aligned)
    • FourSphere

      public static final ShapeHeuristic FourSphere
      4-sphere hull to fill the minimal bounding box (good for many bone links)
    • Sphere

      public static final ShapeHeuristic Sphere
      centered bounding sphere
    • TwoSphere

      public static final ShapeHeuristic TwoSphere
      2-sphere hull to approximate the minimal bounding box (good for many bone links)
    • VertexHull

      public static final ShapeHeuristic VertexHull
      convex hull of mesh vertices (precise but relatively slow)
    • Cylinder

      public static final ShapeHeuristic Cylinder
      rotated cylinder
  • Method Details

    • values

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