diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-14 22:42:10 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-14 22:42:10 +0000 |
commit | d10188594d789796fbc9f5c147aa999a2dc58725 (patch) | |
tree | 0ad90f7d2a303bdb8a3517a89bc8f3c195653cc6 /src/render/camera.cc | |
parent | c297e7f00dc8dae522afe816365a282fae40d254 (diff) |
fix camera position in track mode, fix z-buffer issues, added draw_location
Diffstat (limited to 'src/render/camera.cc')
-rw-r--r-- | src/render/camera.cc | 4 |
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) { |