ecspresso
    Preparing search index...

    Interface Physics2DCollisionEvent

    Event emitted for each physics collision pair.

    interface Physics2DCollisionEvent {
        depth: number;
        entityA: number;
        entityB: number;
        normal: Vector2D;
    }
    Index

    Properties

    depth: number

    Penetration depth (positive)

    entityA: number
    entityB: number
    normal: Vector2D

    Unit normal pointing from A toward B