From: Mikko Rasa Date: Fri, 25 Nov 2022 19:41:48 +0000 (+0200) Subject: Initialize Transform's matrices to identity X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c193dd08af5159544008b5fee0813b1f716ac062;p=libs%2Fgame.git Initialize Transform's matrices to identity --- 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);