StaticsystemThe name the configuration uses for the system.
DefineSystem sets it, so a game usually does not assign it.
StaticwithLists the system in EngineOptions.systems together with its dependencies: classes and functions from the game code that cannot live in the configuration. The system receives them as the second argument of its constructor.
The dependencies of the system.
A binding to put into EngineOptions.systems.
Moves rigid bodies and resolves collisions between them.
The system works with actors that have a RigidBody and a Collider. It sends CollisionEnter, CollisionStay and CollisionLeave to the actors that collide. It registers PhysicsAPI in
world.systemApifor raycasts, shape casts and overlap queries.The options are in PhysicsSystemOptions. The global option
physicsholds the collision layers, see PhysicsSettings.The system works in
fixedUpdate. Put it after the systems that control bodies infixedUpdate: the ones that apply forces, set velocity or callmovePosition.See
Physics