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.systemApi for raycasts, shape casts and overlap queries.
world.systemApi
The options are in PhysicsSystemOptions. The global option physics holds the collision layers, see PhysicsSettings.
physics
The system works in fixedUpdate. Put it after the systems that control bodies in fixedUpdate: the ones that apply forces, set velocity or call movePosition.
fixedUpdate
movePosition
Physics
Static
The name the configuration uses for the system.
DefineSystem sets it, so a game usually does not assign it.
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