From 132dad93d27563b921889506410878a4878ae82d Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 10 Feb 2006 02:24:58 +0000 Subject: [PATCH] Added a mechanism to skip to the end of the current camera path. It's sort of a hack in that it just fakes an update to the path as if 100 seconds had elapsed, but that essentially does just what we want and is so simple. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3845 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/jme/camera/CameraHandler.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/java/com/threerings/jme/camera/CameraHandler.java b/src/java/com/threerings/jme/camera/CameraHandler.java index 8da7a9da7..210f8fcdc 100644 --- a/src/java/com/threerings/jme/camera/CameraHandler.java +++ b/src/java/com/threerings/jme/camera/CameraHandler.java @@ -157,6 +157,16 @@ public class CameraHandler return (_campath != null); } + /** + * Skips immediately to the end of the current camera path. + */ + public void skipPath () + { + // fake an update far enough into the future to trick the camera path + // into thinking it's done + update(100); + } + /** * This is called by the {@link JmeApp} on every frame to allow the handler * to update the camera as necessary.