Hel Posted November 19, 2016 Posted November 19, 2016 Hey guys, I'm trying to define an area that isn't a rectangle, for a visual representation, I have this as what I want to do. (Red lines define the area edge.)The way I'm doing this so far, is by creating two different, rectangular areas, which I do not like, as it does mean making a check if something is within either of the areas + it does look a bit messy. (Red is area 1, Blue is area 2).TL;DR: How do I combine two (or more) areas to create one area.
Juggles Posted November 19, 2016 Posted November 19, 2016 (edited) http://explv.github.io/Poly Area Like this Edited November 19, 2016 by Juggles 1
Hel Posted November 19, 2016 Author Posted November 19, 2016 (edited) /* Alright, second challenge, I'm checking if the closest ground item is within an area, using an array of areas (I do believe that is what that is, anyway), this doesn't work. Any work arounds? */EDIT: got it working, thanks for the help boys Edited November 19, 2016 by viri
Saiyan Posted November 19, 2016 Posted November 19, 2016 Locking this. Glad you found the correct method/answer