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;