Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-30 16:12:10 +0000
committerStijn Buys <ingar@osirion.org>2008-11-30 16:12:10 +0000
commit94a368b734911abe5cab7c61a23e8c225354df85 (patch)
tree28fc2666ddbd27b0c0bd4f954717013d3fe005a6 /src/render
parent04522db8d540a264d3e136d38c693e8fa97bdabd (diff)
corrected wrong axis in tracking camera
Diffstat (limited to 'src/render')
-rw-r--r--src/render/camera.cc2
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) {