Class: Navi3DMesh
Defined in: src/math/navigation/Navi3DMesh.ts:15
Navigation mesh built from geometry, used for 3D path-finding queries.
Constructors
Constructor
new Navi3DMesh(
pointList,triangleIndexList):Navi3DMesh
Defined in: src/math/navigation/Navi3DMesh.ts:52
Creates a navigation mesh from a list of points and triangle index lists.
Parameters
pointList
Vector3[]
triangleIndexList
number[][]
Returns
Navi3DMesh
Accessors
edges
Get Signature
get edges():
Navi3DEdge[]
Defined in: src/math/navigation/Navi3DMesh.ts:32
The edges that make up this navigation mesh.
Returns
Navi3DEdge[]
points
Get Signature
get points():
Navi3DPoint[]
Defined in: src/math/navigation/Navi3DMesh.ts:37
The points (vertices) that make up this navigation mesh.
Returns
Navi3DPoint[]
path
Get Signature
get path():
Vector3[]
Defined in: src/math/navigation/Navi3DMesh.ts:42
The path computed by the most recent findPath call.
Returns
Vector3[]
triangles
Get Signature
get triangles():
Navi3DTriangle[]
Defined in: src/math/navigation/Navi3DMesh.ts:47
The triangles that make up this navigation mesh.
Returns
Navi3DTriangle[]
Methods
getTriangleAtPoint()
getTriangleAtPoint(
point,threshold?):IQuadNode
Defined in: src/math/navigation/Navi3DMesh.ts:73
Returns the triangle located at the given point within the given threshold.
Parameters
point
threshold?
number = 5
Returns
findPath()
findPath(
startPt,endPt,aiRadius?):boolean
Defined in: src/math/navigation/Navi3DMesh.ts:78
Finds a path between two points for an agent of the given radius; returns whether a path was found.
Parameters
startPt
endPt
aiRadius?
number = 5
Returns
boolean

