From 94a368b734911abe5cab7c61a23e8c225354df85 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 30 Nov 2008 16:12:10 +0000 Subject: corrected wrong axis in tracking camera --- src/render/camera.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render') 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) { -- cgit v1.2.3