From 032b7ed47d6fb726f7d4951e7cf5e835b125bf51 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 2 May 2012 18:10:33 +0000 Subject: [PATCH] core: make WorldEntity rotation a quaternion. --- src/worldentity.cpp | 2 +- src/worldentity.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;