From cfbacb625f1b763a632e6dcbec2c61065fdb6cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20=E2=80=98Touky=E2=80=99=20Huet?= Date: Sat, 12 May 2012 16:17:22 +0000 Subject: [PATCH] Small WorldEntity tweaks. --- src/worldentity.cpp | 1 + src/worldentity.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/worldentity.cpp b/src/worldentity.cpp index 332d6b30..56219da9 100644 --- a/src/worldentity.cpp +++ b/src/worldentity.cpp @@ -28,6 +28,7 @@ WorldEntity::WorldEntity() m_position = vec3(0); m_rotation = quat(1); m_velocity = vec3(0); + m_rotation_velocity = vec3(0); m_bbox[0] = m_bbox[1] = vec3(0); m_mousepos = ivec2(0); diff --git a/src/worldentity.h b/src/worldentity.h index 52c179e2..9ca8bb22 100644 --- a/src/worldentity.h +++ b/src/worldentity.h @@ -27,6 +27,7 @@ public: vec3 m_position; vec3 m_velocity; quat m_rotation; + vec3 m_rotation_velocity; vec3 m_bbox[2]; ivec2 m_mousepos;