use obstacle-in-path pathfinding

This commit is contained in:
2025-01-17 13:01:47 +09:00
parent 597aa204de
commit 20f8a2f1fe
7 changed files with 138 additions and 70 deletions
+2 -2
View File
@@ -8,7 +8,6 @@ export default class Terrain {
relativeVertices = []
#colliders = []
#hull = null
#vertices = []
#unadjustedWaypoints = []
@@ -24,7 +23,6 @@ export default class Terrain {
this.#calculateUnadjustedWaypoints()
}
get colliders() { return this.#colliders }
get unadjustedWaypoints() { return this.#unadjustedWaypoints }
get vertices() { return this.#vertices }
@@ -45,6 +43,8 @@ export default class Terrain {
]
}
colliders() { return this.#colliders }
state() {
return {
...this,