visitors kinda working?

This commit is contained in:
Yorick
2015-04-08 21:29:17 +02:00
parent 19f48ad3e9
commit 8ba874bec6
3 changed files with 4 additions and 3 deletions
+3
View File
@@ -101,6 +101,9 @@ public class Visitor
public void move(DrawObject tar, Panel panel)
{
System.out.println("CurrentTarget: " + target);
System.out.println("FinalTarget: " + finalTarget);
System.out.println(panel.getWaypoints().size());
Point2D targetPoint = panel.getWaypoint(target).getAccuratePoint();
double newRot = Math.atan2(targetPoint.getY() - position.getY(), targetPoint.getX() - position.getX());