Fixed missing trigger state

This commit is contained in:
Diren D Bharwani 2023-02-04 01:57:27 +08:00
parent d517a98bab
commit 638286b357
1 changed files with 3 additions and 5 deletions

View File

@ -105,16 +105,14 @@ namespace SHADE
* TODO: Test if the scene graph transforms abides by setting world position. Collisions will ignore the scene graph hierarchy. * TODO: Test if the scene graph transforms abides by setting world position. Collisions will ignore the scene graph hierarchy.
*/ */
} }
}
// Collision & Trigger messages
if (scriptingSystem != nullptr)
scriptingSystem->ExecuteCollisionFunctions();
// Since this function never runs when editor in not in play, execute the function anyway // Since this function never runs when editor in not in play, execute the function anyway
physicsSystem->collisionListener.CleanContainers(); physicsSystem->collisionListener.CleanContainers();
} }
// Collision & Trigger messages
if (scriptingSystem != nullptr)
scriptingSystem->ExecuteCollisionFunctions();
}
} // namespace SHADE } // namespace SHADE