/** * @return the "local time", in seconds reported by our global timer. */ public double getCurrentGlobalTime() { return _globalTimer.getTimeInSeconds(); }
public void update(final ReadOnlyTimer timer, final InteractManager manager) { _handle.updateGeometricState(timer.getTimePerFrame()); }
/** * @return the "local time", in seconds reported by our global timer. */ public double getCurrentGlobalTime() { return _globalTimer.getTimeInSeconds(); }
public void update(final ReadOnlyTimer timer) { runUpdateLogic(timer.getTimePerFrame()); for (final AbstractInteractWidget widget : _widgets) { if (!widget.isActiveUpdateOnly() || widget == _activeWidget) { widget.update(timer, this); } } }
/** * Retrieve and track an instance of an animation clip to be used with this manager. * * @param clip * the clip to instance. * @return our new clip instance. */ public AnimationClipInstance getClipInstance(final AnimationClip clip) { AnimationClipInstance instance = _clipInstances.get(clip); if (instance == null) { instance = new AnimationClipInstance(); instance.setStartTime(_globalTimer.getTimeInSeconds()); _clipInstances.put(clip, instance); } return instance; }
public void update(final ReadOnlyTimer timer) { final double tpf = timer.getTimePerFrame(); // Execute update queue items GameTaskQueueManager.getManager(ParticleEditorFrame.GLOBAL_CONTEXT).getQueue(GameTaskQueue.UPDATE).execute(); _logicalLayer.checkTriggers(tpf); rootNode.updateGeometricState(tpf); if (Constants.stats) { final Camera cam = Camera.getCurrentCamera(); if (cam != null) { labGraph.setTranslation((cam.getWidth() - .5f * labGraph.getWidth()), (.5f * labGraph.getHeight()), 0); } statNode.updateGeometricState(tpf); } }
/** * Retrieve and track an instance of an animation clip to be used with this manager. * * @param clip * the clip to instance. * @return our new clip instance. */ public AnimationClipInstance getClipInstance(final AnimationClip clip) { AnimationClipInstance instance = _clipInstances.get(clip); if (instance == null) { instance = new AnimationClipInstance(); instance.setStartTime(_globalTimer.getTimeInSeconds()); _clipInstances.put(clip, instance); } return instance; }
final double globalTime = _globalTimer.getTimeInSeconds();
final double globalTime = _globalTimer.getTimeInSeconds();
final double currentTime = _globalTimer.getTimeInSeconds(); if (newAnimationState == AnimationUpdateState.Pause) { if (_currentAnimationState == AnimationUpdateState.Stop) {
final double currentTime = _globalTimer.getTimeInSeconds(); if (newAnimationState == AnimationUpdateState.Pause) { if (_currentAnimationState == AnimationUpdateState.Stop) {