1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    2,222
    Likes Received:
    501
    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,937
    Likes Received:
    1,266
  4. Cloud

    Cloud Engineer

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

Share This Page

Loading...