diff options
author | HampusM <hampus@hampusmat.com> | 2023-10-26 19:39:47 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-10-26 19:39:47 +0200 |
commit | 4596f8b28a37260fea0510a521a6523950e5a0c2 (patch) | |
tree | 9af5f0c4707d2e77ba415f19341ee2d052dbff57 | |
parent | a0a7610bc1381b5c26c1677bb7679d022b168499 (diff) |
feat(engine): add mut position getter to Camera
-rw-r--r-- | engine/src/camera.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/src/camera.rs b/engine/src/camera.rs index 1546960..929f1a3 100644 --- a/engine/src/camera.rs +++ b/engine/src/camera.rs @@ -21,6 +21,12 @@ impl Camera &self.position } + #[must_use] + pub fn position_mut(&mut self) -> &mut Vec3<f32> + { + &mut self.position + } + pub fn set_target(&mut self, target: Vec3<f32>) { self.target = target; |