Module org.dyn4j

Enum ContinuousDetectionMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ContinuousDetectionMode>

    public enum ContinuousDetectionMode
    extends java.lang.Enum<ContinuousDetectionMode>
    Enumeration of Continuous Collision Detection modes.
    Since:
    2.2.3
    Version:
    2.2.3
    Author:
    William Bittle
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ALL
      CCD is performed on all bodies against static bodies.
      BULLETS_ONLY
      CCD is performed on bodies flagged as bullets only.
      NONE
      CCD is not performed at all
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ContinuousDetectionMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ContinuousDetectionMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • BULLETS_ONLY

        public static final ContinuousDetectionMode BULLETS_ONLY
        CCD is performed on bodies flagged as bullets only.

        More precisely, the following pairs are tested:

        • Bullet vs. Dynamic
        • Bullet vs. Static
      • ALL

        public static final ContinuousDetectionMode ALL
        CCD is performed on all bodies against static bodies.

        More precisely, the following pairs are tested:

        • Dynamic vs. Static
        • Bullet vs. Static
        • Bullet vs. Dynamic
    • Method Detail

      • values

        public static ContinuousDetectionMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ContinuousDetectionMode c : ContinuousDetectionMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ContinuousDetectionMode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null