@ujjwalvivek/tinyts
    Preparing search index...

    Interface MoveResult

    Result of moving an AABB.

    interface MoveResult {
        colliderIndex: number;
        hit: boolean;
        normal: Vec2;
        pos: Vec2;
        touching: { bottom: boolean; left: boolean; right: boolean; top: boolean };
        velocity: Vec2;
    }
    Index

    Properties

    colliderIndex: number

    Index of the collider hit.

    hit: boolean

    True if a collision occurred.

    normal: Vec2

    Surface normal at contact.

    pos: Vec2

    Final position.

    touching: { bottom: boolean; left: boolean; right: boolean; top: boolean }

    Touching flags for each side.

    velocity: Vec2

    Corrected velocity.