From fc67252e7809928dd634eee016498ee25f16ca05 Mon Sep 17 00:00:00 2001 From: hiker Date: Fri, 25 Sep 2015 09:15:47 +1000 Subject: [PATCH] Fix #2300 (mostly,karts get stuck there atm, but can't drive through the door). --- src/physics/physical_object.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/physics/physical_object.cpp b/src/physics/physical_object.cpp index 765e6c322..9158fbd64 100644 --- a/src/physics/physical_object.cpp +++ b/src/physics/physical_object.cpp @@ -496,6 +496,11 @@ void PhysicalObject::init() btVector3 inertia(1,1,1); if (m_body_type != MP_EXACT) m_shape->calculateLocalInertia(m_mass, inertia); + else + { + if (m_mass == 0) + inertia.setValue(0, 0, 0); + } btRigidBody::btRigidBodyConstructionInfo info(m_mass, m_motion_state, m_shape, inertia);