|
|
@ -171,10 +171,10 @@ public class MotionEvent extends AbstractCinematicEvent implements Control { |
|
|
|
public void internalUpdate(float tpf) { |
|
|
|
public void internalUpdate(float tpf) { |
|
|
|
if (playState == PlayState.Playing) { |
|
|
|
if (playState == PlayState.Playing) { |
|
|
|
time = time + (tpf * speed); |
|
|
|
time = time + (tpf * speed); |
|
|
|
if (loopMode == loopMode.Loop && time < 0) { |
|
|
|
if (loopMode == LoopMode.Loop && time < 0) { |
|
|
|
time = initialDuration; |
|
|
|
time = initialDuration; |
|
|
|
} |
|
|
|
} |
|
|
|
if ((time >= initialDuration || time < 0) && loopMode == loopMode.DontLoop) { |
|
|
|
if ((time >= initialDuration || time < 0) && loopMode == LoopMode.DontLoop) { |
|
|
|
if (time >= initialDuration) { |
|
|
|
if (time >= initialDuration) { |
|
|
|
path.triggerWayPointReach(path.getNbWayPoints() - 1, this); |
|
|
|
path.triggerWayPointReach(path.getNbWayPoints() - 1, this); |
|
|
|
} |
|
|
|
} |
|
|
|