diff options
Diffstat (limited to 'client/src/camera.rs')
-rw-r--r-- | client/src/camera.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/camera.rs b/client/src/camera.rs index 9228482..4006c74 100644 --- a/client/src/camera.rs +++ b/client/src/camera.rs @@ -37,6 +37,12 @@ impl Camera { self.rot.x += input_rot.x * -0.002; self.rot.y += input_rot.y * -0.002; } + pub fn position(&self) -> Vec3 { + self.pos + } + pub fn rotation(&self) -> Vec3 { + self.rot + } pub fn rotation_mat(&self) -> Mat3 { Mat3::from_euler(EulerRot::YXZ, self.rot.x, self.rot.y, self.rot.z) } |