aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2011-09-21 15:54:06 +0200
committerKahrl <kahrl@gmx.net>2011-09-21 15:54:06 +0200
commita4a2c348318139ae9605cf0d7477fe93e8aa2651 (patch)
tree1be5237ea014e32ef3cab274928831bb9e6076dc /src
parent36af9bb027ed6846227282587e3414ea3d30f6c5 (diff)
downloadminetest-a4a2c348318139ae9605cf0d7477fe93e8aa2651.tar.gz
minetest-a4a2c348318139ae9605cf0d7477fe93e8aa2651.tar.bz2
minetest-a4a2c348318139ae9605cf0d7477fe93e8aa2651.zip
reduce view bobbing slightly
Diffstat (limited to 'src')
-rw-r--r--src/camera.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/camera.cpp b/src/camera.cpp
index 56028da40..c14d0e8bf 100644
--- a/src/camera.cpp
+++ b/src/camera.cpp
@@ -189,9 +189,9 @@ void Camera::update(LocalPlayer* player, f32 frametime, v2u32 screensize)
0.8 * bobtmp * bobtmp,
0.);
- rel_cam_pos += 0.03 * bobvec;
- rel_cam_target += 0.045 * bobvec;
- rel_cam_up.rotateXYBy(0.03 * bobdir * bobtmp * PI);
+ rel_cam_pos += 0.02 * bobvec;
+ rel_cam_target += 0.03 * bobvec;
+ rel_cam_up.rotateXYBy(0.02 * bobdir * bobtmp * PI);
#else
f32 angle_deg = 1 * bobdir * sin(bobfrac * PI);
f32 angle_rad = angle_deg * PI / 180;