diff --git a/engine/src/core/com/jme3/cinematic/events/MotionTrack.java b/engine/src/core/com/jme3/cinematic/events/MotionTrack.java index 1ec0f3ad0..8b05eab86 100644 --- a/engine/src/core/com/jme3/cinematic/events/MotionTrack.java +++ b/engine/src/core/com/jme3/cinematic/events/MotionTrack.java @@ -202,7 +202,9 @@ public class MotionTrack extends AbstractCinematicEvent implements Control { } public void onUpdate(float tpf) { + System.out.println("time "+time); traveledDistance = path.interpolatePath(time, this); + System.out.println("dist "+traveledDistance); computeTargetDirection(); if (currentValue >= 1.0f) { @@ -305,6 +307,7 @@ public class MotionTrack extends AbstractCinematicEvent implements Control { @Override public void onPlay() { + traveledDistance = 0; } @Override