Gleam - v1.0.2
    Preparing search index...

    Interface PolygonCollisionResult

    Result of a Polygon.collide call.

    interface PolygonCollisionResult {
        intersect: boolean;
        minimumTranslationVector: Vec2;
        willIntersect: boolean;
    }
    Index

    Properties

    intersect: boolean

    true if the polygons currently overlap.

    minimumTranslationVector: Vec2

    Smallest displacement that would separate the polygons (zero Vec2 when they're disjoint).

    willIntersect: boolean

    true if applying the velocity passed to collide would put the polygons into contact.