Resolved Area.Polygon not containing player

Discussion in 'Client & Site Support' started by proxi, Oct 2, 2015.

  1. proxi

    proxi s̶c̶r̶i̶p̶t̶ bot*

    Joined:
    Aug 23, 2015
    Messages:
    928
    Likes Received:
    253
    I have expanded the area to fix this issue in my case, but if you have an Area created by several Coordinates to make a polygon. If the Player happens to be standing ON one of the coordinates that make up the polygon, Area.contains(Player) returns false.

    I'm not sure if this was a bug, but I had assumed it'd return true. So I'm posting it here in case this was unintentional.

     
  2. Best Answer:
    Post #3 by Cloud, Oct 2, 2015
  3. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,560
    Likes Received:
    1,084
  4. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,568
    Likes Received:
    929
    It's backed by java's polygon class which has right side exclusivity and left side inclusivity.
     
    proxi likes this.

Share This Page

Loading...