- Object
-
- Enum<ContinuousDetectionMode>
-
- ContinuousDetectionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ContinuousDetectionMode>
public enum ContinuousDetectionMode extends 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(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.
-
-
-
Enum Constant Detail
-
NONE
public static final ContinuousDetectionMode NONE
CCD is not performed at all
-
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(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-