Joseph Posted July 21, 2014 Posted July 21, 2014 How exactly do i use it. I tried creating a PositionPolygon using just one position, then painting it using getPolygon. But nothing happens. Even before that i created the PositionPolygon, and used the methods contains entity position. And still nothing -.-
Swizzbeat Posted July 21, 2014 Posted July 21, 2014 The same way you would create a normal polygon object. You have to pass it points that connect together to actually create the shape.
Joseph Posted July 21, 2014 Author Posted July 21, 2014 The same way you would create a normal polygon object. You have to pass it points that connect together to actually create the shape. so then were not allowed to create a one position polygon
Khaleesi Posted July 21, 2014 Posted July 21, 2014 (edited) Just check the internet for a 2D polygon and you'll see what you have to do ^^ so then were not allowed to create a one position polygon Why would you even do this? You can't make an area with 1 point (called a point) You can't make an area with 2 points connected with an edge. (called a Line) When you have 3 posiitons added it is called a triangle. With 4 points you'll get a a more complex shape. and so on Khaleesi Edited July 21, 2014 by Khaleesi 1