Function checkCollision

  • Used for concave collision detection, not good for collision detection (does not check for edges intersecting) use checkSquareCollision()

    Parameters

    • polygon: Vec2[]

      The polygon to check

    • pointsArray: Vec2[]

      List of point to check against the polygon

    Returns Boolean

    True if any of the points lie inside the polygon

Generated using TypeDoc