Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Area.Polygon not containing player

s̶c̶r̶i̶p̶t̶ bot*
Joined
Aug 23, 2015
Messages
2,223
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.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
It's backed by java's polygon class which has right side exclusivity and left side inclusivity.
 
Top