From 4596f8b28a37260fea0510a521a6523950e5a0c2 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 26 Oct 2023 19:39:47 +0200 Subject: feat(engine): add mut position getter to Camera --- engine/src/camera.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engine/src') 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 + { + &mut self.position + } + pub fn set_target(&mut self, target: Vec3) { self.target = target; -- cgit v1.2.3-18-g5258