ecspresso
    Preparing search index...

    Interface Physics3DCollisionEvent

    Event emitted for each physics 3D collision pair.

    Normal components are flattened (normalX/normalY/normalZ) rather than nested in a Vector3D to avoid a per-event allocation in the physics hot path.

    interface Physics3DCollisionEvent {
        depth: number;
        entityA: number;
        entityB: number;
        normalX: number;
        normalY: number;
        normalZ: number;
    }
    Index

    Properties

    depth: number

    Penetration depth (positive)

    entityA: number
    entityB: number
    normalX: number

    Unit normal X, pointing from A toward B

    normalY: number

    Unit normal Y, pointing from A toward B

    normalZ: number

    Unit normal Z, pointing from A toward B