From c193dd08af5159544008b5fee0813b1f716ac062 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 25 Nov 2022 21:41:48 +0200 Subject: [PATCH] Initialize Transform's matrices to identity --- source/game/transform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/game/transform.h b/source/game/transform.h index 05c895b..b1766ae 100644 --- a/source/game/transform.h +++ b/source/game/transform.h @@ -26,8 +26,8 @@ class Transform: public Component { private: TransformValues values; - LinAl::Matrix local_matrix; - LinAl::Matrix world_matrix; + LinAl::Matrix local_matrix = LinAl::Matrix::identity(); + LinAl::Matrix world_matrix = LinAl::Matrix::identity(); public: Transform(Handle); -- 2.43.0