com.jme3.cinematic.events
Enum MotionTrack.Direction

java.lang.Object
  extended by java.lang.Enum<MotionTrack.Direction>
      extended by com.jme3.cinematic.events.MotionTrack.Direction
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MotionTrack.Direction>
Enclosing class:
MotionTrack

public static enum MotionTrack.Direction
extends java.lang.Enum<MotionTrack.Direction>

Enum for the different type of target direction behavior


Enum Constant Summary
LookAt
          The target looks at a point You need to use the setLookAt method when using this direction
None
          the target stay 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 additon of a rtotation you need to use the setRotation mathod when using this Direction
Rotation
          The target rotates with the given rotation
 
Method Summary
static MotionTrack.Direction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MotionTrack.Direction[] 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

None

public static final MotionTrack.Direction None
the target stay in the starting direction


Path

public static final MotionTrack.Direction Path
The target rotates with the direction of the path


PathAndRotation

public static final MotionTrack.Direction PathAndRotation
The target rotates with the direction of the path but with the additon of a rtotation you need to use the setRotation mathod when using this Direction


Rotation

public static final MotionTrack.Direction Rotation
The target rotates with the given rotation


LookAt

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

Method Detail

values

public static MotionTrack.Direction[] 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 (MotionTrack.Direction c : MotionTrack.Direction.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

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