Don't rotate our scrolling vectors unless we're orbiting the camera.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3541 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -234,8 +234,10 @@ public class GodViewHandler extends InputHandler
|
|||||||
_rotm.mult(_camera.getUp(), _camera.getUp());
|
_rotm.mult(_camera.getUp(), _camera.getUp());
|
||||||
_rotm.mult(_camera.getLeft(), _camera.getLeft());
|
_rotm.mult(_camera.getLeft(), _camera.getLeft());
|
||||||
_rotm.mult(_camera.getDirection(), _camera.getDirection());
|
_rotm.mult(_camera.getDirection(), _camera.getDirection());
|
||||||
_rotm.mult(_rxdir, _rxdir);
|
if (around == _groundNormal) {
|
||||||
_rotm.mult(_rydir, _rydir);
|
_rotm.mult(_rxdir, _rxdir);
|
||||||
|
_rotm.mult(_rydir, _rydir);
|
||||||
|
}
|
||||||
|
|
||||||
// and move the camera to its new location
|
// and move the camera to its new location
|
||||||
_camera.setLocation(center.add(direction));
|
_camera.setLocation(center.add(direction));
|
||||||
|
|||||||
Reference in New Issue
Block a user