clik-engine API
    Preparing search index...

    Interface SweptResult

    interface SweptResult {
        hit: boolean;
        normalX: number;
        normalY: number;
        t: number;
    }
    Index

    Properties

    Properties

    hit: boolean

    Whether a collision occurred

    normalX: number

    Normal of the surface hit

    normalY: number
    t: number

    Time of impact (0-1, where 0 = start, 1 = full movement)