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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescriptionstatic MotionEvent.DirectionReturns 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- 
NoneThe target stays in the starting direction.
- 
PathThe target rotates with the direction of the path.
- 
PathAndRotationThe 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.
- 
RotationThe target rotates with the given rotation.
- 
LookAtThe target looks at a point. You need to use the setLookAt method when using this direction.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
 
-