diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-11 00:24:12 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-11 00:24:12 +0100 |
commit | e9e5df5ff1e09356bf2ad0bcc82bbaee6a2acc0d (patch) | |
tree | be3ed59dc7a82ab7d973b7fa88930d7f69c76c49 /client/src/camera.rs | |
parent | 2c8360de342872f65bdef037f3fb5d598b8f26a0 (diff) | |
download | weareserver-e9e5df5ff1e09356bf2ad0bcc82bbaee6a2acc0d.tar weareserver-e9e5df5ff1e09356bf2ad0bcc82bbaee6a2acc0d.tar.bz2 weareserver-e9e5df5ff1e09356bf2ad0bcc82bbaee6a2acc0d.tar.zst |
things
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) } |