aboutsummaryrefslogtreecommitdiff
path: root/src/camera.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/camera.h')
-rw-r--r--src/camera.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/camera.h b/src/camera.h
index aa9139148..df40e3b9f 100644
--- a/src/camera.h
+++ b/src/camera.h
@@ -79,6 +79,12 @@ public:
{
return m_camera_direction;
}
+
+ // Get the camera offset
+ inline v3s16 getOffset() const
+ {
+ return m_camera_offset;
+ }
// Horizontal field of view
inline f32 getFovX() const
@@ -144,6 +150,8 @@ private:
v3f m_camera_position;
// Absolute camera direction
v3f m_camera_direction;
+ // Camera offset
+ v3s16 m_camera_offset;
// Field of view and aspect ratio stuff
f32 m_aspect;