February 8, 201510 yr So i have an area mapped at plane 2 and used if(AREA.contains(myPlayer()){ //DO THIS } and do this triggers if i'm in the area on plane 1... code works slightly better when the check is if(AREA.contains(myPlayer()) && myPlayer.getPosition.getZ() == 2){ //DO THIS } Single area check though doesn't wait until my z = 2.Just waits until my z > 0 and i'm in the area
February 8, 201510 yr This is intended. Area is simply a 2d boundary on the X and Y coords. As you stated, the solution is to simply check the Z coordinate as well. Or you could make an extension of the Area class with an added Z coordinate
February 8, 201510 yr Author This is intended. Area is simply a 2d boundary on the X and Y coords. As you stated, the solution is to simply check the Z coordinate as well. Or you could make an extension of the Area class with an added Z coordinate mmk, I don't know why you'd intend this when the positions you give an area all contain their Z I will work around but it is still kinda strange with the way it handles being there
February 8, 201510 yr mmk, I don't know why you'd intend this when the positions you give an area all contain their Z I will work around but it is still kinda strange with the way it handles being there It has constructors that simply take X and Y coordinates; the ones that take Position instances merely grabs their X and Y coords