projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36af9bb
)
reduce view bobbing slightly
author
Kahrl
<kahrl@gmx.net>
Wed, 21 Sep 2011 13:54:06 +0000
(15:54 +0200)
committer
Kahrl
<kahrl@gmx.net>
Wed, 21 Sep 2011 13:54:06 +0000
(15:54 +0200)
src/camera.cpp
patch
|
blob
|
history
diff --git
a/src/camera.cpp
b/src/camera.cpp
index 56028da4027ea0c5a2cecf68bc21225c1333ce26..c14d0e8bf4c4a2e8e79a6b9586bec02cfb6fdd15 100644
(file)
--- 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.0
3
* bobvec;
- rel_cam_target += 0.0
45
* bobvec;
- rel_cam_up.rotateXYBy(0.0
3
* bobdir * bobtmp * PI);
+ rel_cam_pos += 0.0
2
* bobvec;
+ rel_cam_target += 0.0
3
* bobvec;
+ rel_cam_up.rotateXYBy(0.0
2
* bobdir * bobtmp * PI);
#else
f32 angle_deg = 1 * bobdir * sin(bobfrac * PI);
f32 angle_rad = angle_deg * PI / 180;