Constructors
constructor
- new NavMeshQuery(): RawModule.NavMeshQuery
- new NavMeshQuery(navMeshQuery): RawModule.NavMeshQuery
Properties
m_navQuery
Methods
closestPointOnPoly
- closestPointOnPoly(ref, pos, closest, posOverPoly): number
Parameters
ref: number
pos: readonly number[]
closest: Vec3
Returns number
destroy
- destroy(): void
Returns void
findClosestPoint
- findClosestPoint(position, halfExtents, filter, resultPolyRef, resultPoint, resultPosOverPoly): number
Parameters
position: readonly number[]
halfExtents: readonly number[]
resultPoint: Vec3
resultPosOverPoly: BoolRef
Returns number
findNearestPoly
- findNearestPoly(center, halfExtents, filter, nearestRef, nearestPt, isOverPoly): number
Parameters
center: readonly number[]
halfExtents: readonly number[]
nearestPt: Vec3
Returns number
findPath
- findPath(startRef, endRef, startPos, endPos, filter, path, maxPath): number
Parameters
startRef: number
endRef: number
startPos: readonly number[]
endPos: readonly number[]
maxPath: number
Returns number
findPolysAroundCircle
- findPolysAroundCircle(startRef, centerPos, radius, filter, resultRef, resultParent, resultCost, resultCount, maxResult): number
Parameters
startRef: number
centerPos: readonly number[]
radius: number
resultCount: IntRef
maxResult: number
Returns number
findRandomPoint
- findRandomPoint(filter, resultRandomRef, resultRandomPoint): number
Returns number
findRandomPointAroundCircle
- findRandomPointAroundCircle(startRef, centerPos, radius, filter, resultRandomRef, resultRandomPoint): number
Parameters
startRef: number
centerPos: readonly number[]
radius: number
resultRandomPoint: Vec3
Returns number
findStraightPath
- findStraightPath(startPos, endPos, pathPolys, straightPath, straightPathFlags, straightPathRefs, straightPathCountRef, maxStraightPath, options): number
Parameters
startPos: readonly number[]
endPos: readonly number[]
straightPathCountRef: IntRef
maxStraightPath: number
options: number
Returns number
getPolyHeight
- getPolyHeight(ref, pos, height): number
Parameters
ref: number
pos: readonly number[]
Returns number
get_m_navQuery
- get_m_navQuery(): dtNavMeshQuery
init
- init(navMesh, maxNodes): number
Returns number
moveAlongSurface
- moveAlongSurface(startRef, startPos, endPos, filter, resultPos, visited, maxVisitedSize): number
Parameters
startRef: number
startPos: readonly number[]
endPos: readonly number[]
resultPos: Vec3
maxVisitedSize: number
Returns number
queryPolygons
- queryPolygons(center, halfExtents, filter, polys, polyCount, maxPolys): number
Parameters
center: readonly number[]
halfExtents: readonly number[]
maxPolys: number
Returns number
raycast
- raycast(startRef, startPos, endPos, filter, options, hit, prevRef): number
Parameters
startRef: number
startPos: readonly number[]
endPos: readonly number[]
options: number
prevRef: number
Returns number
set_m_navQuery
- set_m_navQuery(m_navQuery): void
Returns void