revert "fix some pathfinding problems"

This reverts commit 2a9ef691fe.
This commit is contained in:
2024-12-25 09:36:28 +09:00
parent 2a9ef691fe
commit 2570f32592
2 changed files with 5 additions and 15 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ export default class Entity {
const unadjustedGraph = (this.game?.waypointGraph ?? []).concat(extraGraphEntries)
console.timeEnd('unadjustedGraph')
console.time('path')
this.#path = Pathfind.shortestPath(unadjustedGraph, this.position, fixedDest, this.radius, this.collidables()).map(([unadjusted, direction]) => unadjusted.clone().add(direction.clone().multiplyScalar(this.radius)))
this.#path = Pathfind.shortestPath(unadjustedGraph, this.position, fixedDest).map(([unadjusted, direction]) => unadjusted.clone().add(direction.clone().multiplyScalar(this.radius)))
console.log(this.#path)
console.timeEnd('path')
console.timeEnd('pathfinding')