ecspresso
    Preparing search index...

    Type Alias CollisionPairCallback<W>

    CollisionPairCallback: (
        firstEntityId: number,
        secondEntityId: number,
        ecs: W,
    ) => void

    Callback for a collision pair handler.

    Type Parameters

    • W = unknown

    Type Declaration

      • (firstEntityId: number, secondEntityId: number, ecs: W): void
      • Parameters

        • firstEntityId: number

          Entity belonging to the first layer in the pair key

        • secondEntityId: number

          Entity belonging to the second layer in the pair key

        • ecs: W

          The ECS world instance (passed through from the subscriber)

        Returns void