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
This commit is contained in:
Michael Bayne
2006-02-10 02:24:58 +00:00
parent 0bd48b4b6a
commit 132dad93d2
@@ -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.