Package com.jme3.cinematic.events
Enum Class MotionEvent.Direction
- All Implemented Interfaces:
Serializable
,Comparable<MotionEvent.Direction>
,Constable
- Enclosing class:
- MotionEvent
Enum for the different type of target direction behavior.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe target looks at a point.The target stays in the starting direction.The target rotates with the direction of the path.The target rotates with the direction of the path but with the addition of a rotation.The target rotates with the given rotation. -
Method Summary
Modifier and TypeMethodDescriptionstatic MotionEvent.Direction
Returns the enum constant of this class with the specified name.static MotionEvent.Direction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
The target stays in the starting direction. -
Path
The target rotates with the direction of the path. -
PathAndRotation
The target rotates with the direction of the path but with the addition of a rotation. You need to use the setRotation method when using this Direction. -
Rotation
The target rotates with the given rotation. -
LookAt
The target looks at a point. You need to use the setLookAt method when using this direction.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-