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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user