Enum Class MotionEvent.Direction

java.lang.Object
java.lang.Enum<MotionEvent.Direction>
com.jme3.cinematic.events.MotionEvent.Direction
All Implemented Interfaces:
Serializable, Comparable<MotionEvent.Direction>, Constable
Enclosing class:
MotionEvent

public static enum MotionEvent.Direction extends Enum<MotionEvent.Direction>
Enum for the different type of target direction behavior.
  • Enum Constant Details

    • None

      public static final MotionEvent.Direction None
      The target stays in the starting direction.
    • Path

      public static final MotionEvent.Direction Path
      The target rotates with the direction of the path.
    • PathAndRotation

      public static final MotionEvent.Direction 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

      public static final MotionEvent.Direction Rotation
      The target rotates with the given rotation.
    • LookAt

      public static final MotionEvent.Direction LookAt
      The target looks at a point. You need to use the setLookAt method when using this direction.
  • Method Details

    • values

      public static MotionEvent.Direction[] 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 MotionEvent.Direction 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