Jump to content

Area on another Z plane

Recommended Posts

Hey all, currently debugging some Area code.

	Position[] possArr = {new Position(x1, y1, 1), new Position(x2, y2, 1) etc ...};	
	Area areaPoly = new Area(posArr);

	public void onPaint(Graphics2D g) {
		List<Position> posList = areaPoly.getPositions();
		boolean bool = areaPoly.contains(myPlayer());
		g.drawString(Boolean.toString(bool), 10, 20);
		for (Position pos : posList) {

The area is being drawn but on the z=0 plane. My boolean displays true on the 0 plane, but false on same spot on the 1 plane.

Any workarounds?

Edited by Athylus
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...