Waypoint move

This commit is contained in:
Yorick
2015-04-08 21:03:29 +02:00
parent 8167fec369
commit 26265b5a3e
4 changed files with 16 additions and 7 deletions
+1 -3
View File
@@ -94,7 +94,6 @@ public class Visitor
}
}
System.out.println(actions.size());
// moveToTarget(target, objects, visitors, paths);
move(target, panel);
@@ -102,7 +101,7 @@ public class Visitor
public void move(DrawObject tar, Panel panel)
{
Point2D targetPoint = panel.getWaypoint(target).getPosition();
Point2D targetPoint = panel.getWaypoint(target).getAccuratePoint();
double newRot = Math.atan2(targetPoint.getY() - position.getY(), targetPoint.getX() - position.getX());
@@ -118,7 +117,6 @@ public class Visitor
{
rotation += 0.15;
}
Point2D oldPosition = position;
// face direction