diff --git a/src/worldentity.cpp b/src/worldentity.cpp index 37537675..332d6b30 100644 --- a/src/worldentity.cpp +++ b/src/worldentity.cpp @@ -26,7 +26,7 @@ namespace lol WorldEntity::WorldEntity() { m_position = vec3(0); - m_rotation = vec3(0); + m_rotation = quat(1); m_velocity = vec3(0); m_bbox[0] = m_bbox[1] = vec3(0); diff --git a/src/worldentity.h b/src/worldentity.h index c63b0cf4..52c179e2 100644 --- a/src/worldentity.h +++ b/src/worldentity.h @@ -25,8 +25,8 @@ class WorldEntity : public Entity { public: vec3 m_position; - vec3 m_rotation; vec3 m_velocity; + quat m_rotation; vec3 m_bbox[2]; ivec2 m_mousepos;