diff --git a/libs/math/include/psemek/math/trs.hpp b/libs/math/include/psemek/math/trs.hpp index 20593728..2e9eb273 100644 --- a/libs/math/include/psemek/math/trs.hpp +++ b/libs/math/include/psemek/math/trs.hpp @@ -16,13 +16,13 @@ namespace psemek::math template struct trs { - vector translation; - quaternion rotation; - vector scale; + vector translation = {T{0}, T{0}, T{0}}; + quaternion rotation = quaternion::identity(); + vector scale = {T{1}, T{1}, T{1}}; static trs identity() { - return {vector::zero(), quaternion::identity(), vector{T{1}, T{1}, T{1}}}; + return {}; } static trs from(matrix const & m)