Don't update the physical object if it's static
This commit is contained in:
parent
f8323b9ad1
commit
7fb276e976
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user