mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-03-04 22:50:36 +07:00
Increased position lerp tolerance to 0.1 yards -- should help prevent entities getting stuck at waypoints
This commit is contained in:
parent
b6bf8773a1
commit
40d9b56c33
@ -53,7 +53,7 @@ public class PathfindSystem extends IteratingSystem {
|
||||
if (part == 0) break;
|
||||
position.lerp(target, part / targetLen);
|
||||
traveled += part;
|
||||
if (MathUtils.isEqual(part, targetLen)) {
|
||||
if (MathUtils.isEqual(part, targetLen, 0.1f)) {
|
||||
if (targets.hasNext()) {
|
||||
MapGraph.Point2 next = targets.next();
|
||||
target.set(next.x, next.y);
|
||||
|
Loading…
Reference in New Issue
Block a user