mob ai work

This commit is contained in:
2025-01-08 17:36:51 -06:00
parent 40c77df0fe
commit c581d19990
2 changed files with 3 additions and 2 deletions
@@ -983,7 +983,6 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
public final void setLoc(final Vector3fImmutable value) {
super.setLoc(value); // set the location in the world
this.resetLastSetLocUpdate();
WorldGrid.updateObject(this);
}
public Vector3fImmutable getMovementLoc() {
+3 -1
View File
@@ -2159,8 +2159,10 @@ public class Mob extends AbstractIntelligenceAgent {
Vector3fImmutable newPatrolPoint = Vector3fImmutable.getRandomPointInCircle(this.getBindLoc(), patrolRadius);
this.patrolPoints.add(newPatrolPoint);
if (i == 1)
if (i == 1) {
MovementManager.translocate(this, newPatrolPoint, null);
WorldGrid.updateObject(this);
}
}
}