dino-ge
    Preparing search index...

    Interface CollisionManifold

    Holds data about a collision between two objects.

    interface CollisionManifold {
        depth: number;
        fixtureIndex1?: number;
        fixtureIndex2?: number;
        normal: Vector2;
        obj1: GameObject;
        obj2: GameObject;
    }
    Index
    depth: number

    Penetration depth in world space.

    fixtureIndex1?: number

    Fixture indexes for explicit contacts. Legacy geometry occupies index zero.

    fixtureIndex2?: number
    normal: Vector2

    Normalized direction of the collision from obj1 to obj2.

    First object in the collision.

    Second object in the collision.