From 0c0dc186b542bf6bdd7645ba091dc2a47a03fa97 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 25 Oct 2023 20:56:01 +0200 Subject: feat(engine): add object position getter --- engine/src/transform.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engine/src/transform.rs') diff --git a/engine/src/transform.rs b/engine/src/transform.rs index 9ce52ee..c216fdd 100644 --- a/engine/src/transform.rs +++ b/engine/src/transform.rs @@ -22,6 +22,11 @@ impl Transform } } + pub fn translation(&self) -> &Vec3 + { + &self.translation + } + pub fn set_translation(&mut self, translation: Vec3) { self.translation = translation; -- cgit v1.2.3-18-g5258