Added isRotating(); changed the default camera velocity to be in line with
the other velocities. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3700 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -110,6 +110,15 @@ public class GodViewHandler extends InputHandler
|
|||||||
_rotateDelta += deltaAngle;
|
_rotateDelta += deltaAngle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the camera is still rotating due to a previous call
|
||||||
|
* to {@link #rotateCamera}.
|
||||||
|
*/
|
||||||
|
public boolean isRotating ()
|
||||||
|
{
|
||||||
|
return _rotateDelta != 0;
|
||||||
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
public void update (float time)
|
public void update (float time)
|
||||||
{
|
{
|
||||||
@@ -378,7 +387,7 @@ public class GodViewHandler extends InputHandler
|
|||||||
protected Camera _camera;
|
protected Camera _camera;
|
||||||
protected Matrix3f _rotm = new Matrix3f();
|
protected Matrix3f _rotm = new Matrix3f();
|
||||||
|
|
||||||
protected float _rotateVelocity = 3*FastMath.PI/2, _rotateDelta;
|
protected float _rotateVelocity = FastMath.PI, _rotateDelta;
|
||||||
|
|
||||||
protected float _minX = Float.MIN_VALUE, _maxX = Float.MAX_VALUE;
|
protected float _minX = Float.MIN_VALUE, _maxX = Float.MAX_VALUE;
|
||||||
protected float _minY = Float.MIN_VALUE, _maxY = Float.MAX_VALUE;
|
protected float _minY = Float.MIN_VALUE, _maxY = Float.MAX_VALUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user