Function checkSquareCollision

  • Checks to see if two polygons are intersecting (used for convex polygons)

    Parameters

    • poly1: Vec2[]

      The first polygon

    • poly2: Vec2[]

      The second polygon

    Returns boolean

    True if the polygons are colliding, false otherwise

Generated using TypeDoc