aboutsummaryrefslogtreecommitdiff
path: root/src/camera.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/camera.h')
-rw-r--r--src/camera.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/camera.h b/src/camera.h
index 8d213ede7..9ed4b7277 100644
--- a/src/camera.h
+++ b/src/camera.h
@@ -166,6 +166,8 @@ public:
void drawNametags();
+ inline void add_arm_inertia(f32 player_yaw, f32 frametime);
+
private:
// Nodes
scene::ISceneNode *m_playernode = nullptr;
@@ -188,6 +190,12 @@ private:
// Camera offset
v3s16 m_camera_offset;
+ v2f m_wieldmesh_offset = v2f(55.0f, -35.0f);
+ v2f m_timer;
+ v2f m_cam_vel;
+ v2f m_cam_vel_old;
+ v2f m_last_cam_pos;
+
// Field of view and aspect ratio stuff
f32 m_aspect = 1.0f;
f32 m_fov_x = 1.0f;
@@ -221,6 +229,7 @@ private:
f32 m_cache_view_bobbing_amount;
f32 m_cache_fov;
f32 m_cache_zoom_fov;
+ bool m_arm_inertia;
std::list<Nametag *> m_nametags;
};