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
- posOverPoly: BoolRef
Returns number
destroy
- destroy(): void
Returns void
findClosestPoint
- findClosestPoint(position, halfExtents, filter, resultPolyRef, resultPoint, resultPosOverPoly): number
Returns number
findNearestPoly
- findNearestPoly(center, halfExtents, filter, nearestRef, nearestPt, isOverPoly): number
Returns number
findPath
- findPath(startRef, endRef, startPos, endPos, filter, path, maxPath): number
Returns number
findPolysAroundCircle
- findPolysAroundCircle(startRef, centerPos, radius, filter, resultRef, resultParent, resultCost, resultCount, maxResult): number
Returns number
findRandomPoint
- findRandomPoint(filter, resultRandomRef, resultRandomPoint): number
Returns number
findRandomPointAroundCircle
- findRandomPointAroundCircle(startRef, centerPos, radius, filter, resultRandomRef, resultRandomPoint): number
Returns number
findStraightPath
- findStraightPath(startPos, endPos, pathPolys, straightPath, straightPathFlags, straightPathRefs, straightPathCountRef, maxStraightPath, options): number
Returns number
getPolyHeight
- getPolyHeight(ref, pos, height): number
Parameters
- ref: number
- pos: readonly number[]
- height: FloatRef
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
Returns number
queryPolygons
- queryPolygons(center, halfExtents, filter, polys, polyCount, maxPolys): number
Returns number
raycast
- raycast(startRef, startPos, endPos, filter, options, hit, prevRef): number
Parameters
- startRef: number
- startPos: readonly number[]
- endPos: readonly number[]
- filter: dtQueryFilter
- options: number
- hit: dtRaycastHit
- prevRef: number
Returns number
set_m_navQuery
- set_m_navQuery(m_navQuery): void
Returns void