dacha
    Preparing search index...

    Class PhysicsSystem

    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.

    The options are in PhysicsSystemOptions. The global option physics holds the collision layers, see PhysicsSettings.

    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.

    Physics

    Hierarchy (View Summary)

    Index
    systemName: string

    The name the configuration uses for the system.

    DefineSystem sets it, so a game usually does not assign it.