Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/camera.cc')
-rw-r--r--src/render/camera.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/camera.cc b/src/render/camera.cc
index a55038d..287e4ad 100644
--- a/src/render/camera.cc
+++ b/src/render/camera.cc
@@ -265,8 +265,8 @@ void Camera::draw(float seconds)
}
if (core::localcontrol()->model()) {
- camera_target -= (core::localcontrol()->model()->maxbbox().x + 0.1f) * camera_axis.forward();
- camera_target += (core::localcontrol()->model()->maxbbox().z + 0.1f ) * camera_axis.up();
+ camera_target -= (core::localcontrol()->model()->maxbbox().x + core::localcontrol()->model()->radius() + 0.1f) * 0.5f * camera_axis.forward();
+ camera_target += (core::localcontrol()->model()->maxbbox().z + core::localcontrol()->model()->radius() + 0.1f) * 0.5f * camera_axis.up();
}
} else if (mode() == Free) {