Don't update the physical object if it's static

This commit is contained in:
Benau 2018-04-19 14:14:37 +08:00
parent f8323b9ad1
commit 7fb276e976

View File

@ -607,6 +607,8 @@ void PhysicalObject::init(const PhysicalObject::Settings& settings)
void PhysicalObject::updateGraphics(float dt)
{
if (!m_is_dynamic)
return;
Vec3 xyz = m_current_transform.getOrigin();
// Offset the graphical position correctly: