@Override
    public void read(JmeImporter im) throws IOException {
        super.read(im);
        InputCapsule in = im.getCapsule(this);
        lookAt = (Vector3f) in.readSavable("lookAt", null);
        upVector = (Vector3f) in.readSavable("upVector", Vector3f.UNIT_Y);
        rotation = (Quaternion) in.readSavable("rotation", null);
        directionType = in.readEnum("directionType", Direction.class, Direction.None);
        path = (MotionPath) in.readSavable("path", null);
        spatial = (Spatial) in.readSavable("spatial", null);
    }
Creates a MotionPath for the given spatial on the given motion path.

@param spatial the Spatial to move (not null)
@param path the path to be taken (alias created)
@param initialDuration the desired duration (in seconds, default=10)
@param loopMode (default=DontLoop)
jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java