diff options
Diffstat (limited to 'engine')
-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; |