summaryrefslogtreecommitdiff
path: root/src/camera.h
diff options
context:
space:
mode:
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>2013-04-07 15:41:33 -1000
committerkwolekr <kwolekr@minetest.net>2013-04-11 19:42:47 -0400
commit7cd5eb4c77de9fda4946de7e1c2384d0c2a0253e (patch)
tree67210091a050856c943443ea1b8e791d0fb271db /src/camera.h
parent17cfb1850d35148b9e2445dfdd160a164d02ebf9 (diff)
downloadminetest-7cd5eb4c77de9fda4946de7e1c2384d0c2a0253e.tar.gz
minetest-7cd5eb4c77de9fda4946de7e1c2384d0c2a0253e.tar.bz2
minetest-7cd5eb4c77de9fda4946de7e1c2384d0c2a0253e.zip
Swing the camera down when the player lands on the ground, based on the velocity the surface is hit with.
Diffstat (limited to 'src/camera.h')
-rw-r--r--src/camera.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/camera.h b/src/camera.h
index 989dcb718..0ed5c20d2 100644
--- a/src/camera.h
+++ b/src/camera.h
@@ -166,6 +166,8 @@ private:
s32 m_view_bobbing_state;
// Speed of view bobbing animation
f32 m_view_bobbing_speed;
+ // Fall view bobbing
+ f32 m_view_bobbing_fall;
// Digging animation frame (0 <= m_digging_anim < 1)
f32 m_digging_anim;