public void setDirection(Vector3f direction, Vector3f upVector) {
        this.direction.set(direction);
        this.upVector.set(upVector);
    }
Sets the direction of the spatial with the given up vector.
This method is used by the motion path.

@param direction the desired forward direction (not null, unaffected)
@param upVector the up vector to consider for this direction.
jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java