diff options
author | Stijn Buys <ingar@osirion.org> | 2008-11-30 16:12:10 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-11-30 16:12:10 +0000 |
commit | 94a368b734911abe5cab7c61a23e8c225354df85 (patch) | |
tree | 28fc2666ddbd27b0c0bd4f954717013d3fe005a6 /src | |
parent | 04522db8d540a264d3e136d38c693e8fa97bdabd (diff) |
corrected wrong axis in tracking camera
Diffstat (limited to 'src')
-rw-r--r-- | src/render/camera.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/camera.cc b/src/render/camera.cc index d9821a3..a020947 100644 --- a/src/render/camera.cc +++ b/src/render/camera.cc @@ -295,7 +295,7 @@ void Camera::frame(float seconds) } */ float f = ( camera_frustum_size/State::aspect() ); - camera_target += target_axis.up() * math::max(f, core::localcontrol()->radius()); + camera_target += camera_axis.up() * math::max(f, core::localcontrol()->radius()); distance = math::max(f, core::localcontrol()->radius()) + camera_zoom * core::localcontrol()->radius(); } else if (mode() == Free) { |