diff options
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/camera.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/render/camera.cc b/src/render/camera.cc index 4544b75..c7749c4 100644 --- a/src/render/camera.cc +++ b/src/render/camera.cc @@ -232,10 +232,11 @@ void Camera::frame(float seconds) if (core::localplayer()->view()) { // player view entity - camera_target.assign(core::localplayer()->view()->location()); + distance = math::max(core::localplayer()->view()->radius(), 1.0f) * 3.0f; camera_axis.assign(core::localplayer()->view()->axis()); camera_axis.change_direction(180.0f); - distance = math::max(core::localplayer()->view()->radius(), 1.0f) * 2.0f; + camera_target.assign(core::localplayer()->view()->location() - core::localplayer()->view()->axis().left()* (math::max(core::localplayer()->view()->radius(), 1.0f)*0.5f) ); + /* } else if (core::localplayer()->zone()->default_view()) { // default zone view entity |