Time in cinematic is now computed by stacking tpf

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9122 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 13 years ago
parent ebb2fca18f
commit 0c5e5341bd
  1. 4
      engine/src/core/com/jme3/cinematic/events/AbstractCinematicEvent.java

@ -133,8 +133,8 @@ public abstract class AbstractCinematicEvent implements CinematicEvent {
*/ */
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);
time = elapsedTimePause + (timer.getTimeInSeconds() - start) * speed; //time = elapsedTimePause + (timer.getTimeInSeconds() - start) * speed;
onUpdate(tpf); onUpdate(tpf);
if (time >= initialDuration && loopMode == loopMode.DontLoop) { if (time >= initialDuration && loopMode == loopMode.DontLoop) {

Loading…
Cancel
Save