mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-24 08:28:49 -05:00
reduce view bobbing slightly
This commit is contained in:
parent
36af9bb027
commit
a4a2c34831
@ -189,9 +189,9 @@ void Camera::update(LocalPlayer* player, f32 frametime, v2u32 screensize)
|
|||||||
0.8 * bobtmp * bobtmp,
|
0.8 * bobtmp * bobtmp,
|
||||||
0.);
|
0.);
|
||||||
|
|
||||||
rel_cam_pos += 0.03 * bobvec;
|
rel_cam_pos += 0.02 * bobvec;
|
||||||
rel_cam_target += 0.045 * bobvec;
|
rel_cam_target += 0.03 * bobvec;
|
||||||
rel_cam_up.rotateXYBy(0.03 * bobdir * bobtmp * PI);
|
rel_cam_up.rotateXYBy(0.02 * bobdir * bobtmp * PI);
|
||||||
#else
|
#else
|
||||||
f32 angle_deg = 1 * bobdir * sin(bobfrac * PI);
|
f32 angle_deg = 1 * bobdir * sin(bobfrac * PI);
|
||||||
f32 angle_rad = angle_deg * PI / 180;
|
f32 angle_rad = angle_deg * PI / 180;
|
||||||
|
Loading…
Reference in New Issue
Block a user