diff options
Diffstat (limited to 'engine/src/transform.rs')
-rw-r--r-- | engine/src/transform.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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<f32> + { + &self.translation + } + pub fn set_translation(&mut self, translation: Vec3<f32>) { self.translation = translation; |