forked from phenom/healer-man
Release Healer Man 0.1.33
This commit is contained in:
1 parent
6dcb1034e5
commit
05b25c4341
20 files changed
+573
-51
No files matched your search
@@ -570,7 +570,16 @@ export function findNearestPartyNavigationSurface(
|
||||
maxDistance = Number.POSITIVE_INFINITY,
|
||||
): PartyNavigationSurfaceMatch | null {
|
||||
const triangles = graph.triangles;
|
||||
if (!triangles?.length) return null;
|
||||
if (!triangles?.length) {
|
||||
const nearest = findNearestPartyNavigationNode(graph, point, maxDistance);
|
||||
return nearest
|
||||
? Object.freeze({
|
||||
position: nearest.node.position,
|
||||
triangleId: -1,
|
||||
distance: nearest.distance,
|
||||
})
|
||||
: null;
|
||||
}
|
||||
const target = pointComponents(point);
|
||||
const limit = Number.isFinite(maxDistance) ? Math.max(0, maxDistance) : Number.POSITIVE_INFINITY;
|
||||
let nearestPosition: PartyNavigationPosition | null = null;
|
||||
|
||||
Reference in new issue
Block a user