From e9e5df5ff1e09356bf2ad0bcc82bbaee6a2acc0d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 11 Jan 2025 00:24:12 +0100 Subject: things --- client/src/camera.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/src/camera.rs') 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) } -- cgit v1.2.3-70-g09d2