Constructors
constructor
- new Recast(): RawModule.Recast
Properties
AREA_BORDER
AREA_BORDER: number
BORDER_REG
BORDER_REG: number
BORDER_VERTEX
BORDER_VERTEX: number
CONTOUR_REG_MASK
CONTOUR_REG_MASK: number
MESH_NULL_IDX
MESH_NULL_IDX: number
MULTIPLE_REGS
MULTIPLE_REGS: number
NOT_CONNECTED
NOT_CONNECTED: number
NULL_AREA
NULL_AREA: number
WALKABLE_AREA
WALKABLE_AREA: number
Methods
allocCompactHeightfield
- allocCompactHeightfield(): rcCompactHeightfield
allocContourSet
- allocContourSet(): rcContourSet
allocHeightfield
- allocHeightfield(): rcHeightfield
allocHeightfieldLayerSet
- allocHeightfieldLayerSet(): rcHeightfieldLayerSet
allocPolyMesh
- allocPolyMesh(): rcPolyMesh
allocPolyMeshDetail
- allocPolyMeshDetail(): rcPolyMeshDetail
buildCompactHeightfield
- buildCompactHeightfield(ctx, walkableHeight, walkableClimb, solid, chf): boolean
Parameters
walkableHeight: number
walkableClimb: number
Returns boolean
buildContours
- buildContours(ctx, chf, maxError, maxEdgeLen, cset, buildFlags): boolean
Parameters
maxError: number
maxEdgeLen: number
buildFlags: number
Returns boolean
buildDistanceField
- buildDistanceField(ctx, chf): boolean
Returns boolean
buildHeightfieldLayers
- buildHeightfieldLayers(ctx, chf, borderSize, walkableHeight, lset): boolean
Parameters
borderSize: number
walkableHeight: number
Returns boolean
buildLayerRegions
- buildLayerRegions(ctx, chf, borderSize, minRegionArea): boolean
Parameters
borderSize: number
minRegionArea: number
Returns boolean
buildPolyMesh
- buildPolyMesh(ctx, cset, nvp, mesh): boolean
Returns boolean
buildPolyMeshDetail
- buildPolyMeshDetail(ctx, mesh, chf, sampleDist, sampleMaxError, dmesh): boolean
Parameters
sampleDist: number
sampleMaxError: number
Returns boolean
buildRegions
- buildRegions(ctx, chf, borderSize, minRegionArea, mergeRegionArea): boolean
Parameters
borderSize: number
minRegionArea: number
mergeRegionArea: number
Returns boolean
buildRegionsMonotone
- buildRegionsMonotone(ctx, chf, borderSize, minRegionArea, mergeRegionArea): boolean
Parameters
borderSize: number
minRegionArea: number
mergeRegionArea: number
Returns boolean
calcBounds
- calcBounds(verts, nv): RecastCalcBoundsResult
calcGridSize
- calcGridSize(bmin, bmax, cs): RecastCalcGridSizeResult
Parameters
bmin: readonly number[]
bmax: readonly number[]
cs: number
clearUnwalkableTriangles
- clearUnwalkableTriangles(ctx, walkableSlopeAngle, verts, nv, tris, nt, areas): void
Parameters
walkableSlopeAngle: number
nv: number
nt: number
Returns void
copyPolyMesh
- copyPolyMesh(ctx, src, dst): boolean
Returns boolean
createHeightfield
- createHeightfield(ctx, hf, width, height, bmin, bmax, cs, ch): boolean
Parameters
width: number
height: number
bmin: readonly number[]
bmax: readonly number[]
cs: number
ch: number
Returns boolean
erodeWalkableArea
- erodeWalkableArea(ctx, radius, chf): boolean
Returns boolean
filterLedgeSpans
- filterLedgeSpans(ctx, walkableHeight, walkableClimb, solid): void
Parameters
walkableHeight: number
walkableClimb: number
Returns void
filterLowHangingWalkableObstacles
- filterLowHangingWalkableObstacles(ctx, walkableClimb, solid): void
Returns void
filterWalkableLowHeightSpans
- filterWalkableLowHeightSpans(ctx, walkableHeight, solid): void
Returns void
freeCompactHeightfield
- freeCompactHeightfield(chf): void
Returns void
freeContourSet
- freeContourSet(cset): void
Returns void
freeHeightfield
- freeHeightfield(hf): void
Returns void
freeHeightfieldLayerSet
- freeHeightfieldLayerSet(lset): void
Returns void
freePolyMesh
- freePolyMesh(mesh): void
Returns void
freePolyMeshDetail
- freePolyMeshDetail(dmesh): void
Returns void
getCon
- getCon(s, dir): number
Returns number
getDirForOffset
- getDirForOffset(x, y): number
Returns number
getDirOffsetX
- getDirOffsetX(dir): number
Returns number
getDirOffsetY
- getDirOffsetY(dir): number
Returns number
getHeightFieldSpanCount
- getHeightFieldSpanCount(ctx, solid): number
Returns number
getHeightfieldLayerAreas
- getHeightfieldLayerAreas(heightfieldLayer): RawModule.UnsignedCharArray
getHeightfieldLayerCons
- getHeightfieldLayerCons(heightfieldLayer): RawModule.UnsignedCharArray
getHeightfieldLayerHeights
- getHeightfieldLayerHeights(heightfieldLayer): RawModule.UnsignedCharArray
get_AREA_BORDER
- get_AREA_BORDER(): number
Returns number
get_BORDER_REG
- get_BORDER_REG(): number
Returns number
get_BORDER_VERTEX
- get_BORDER_VERTEX(): number
Returns number
get_CONTOUR_REG_MASK
- get_CONTOUR_REG_MASK(): number
Returns number
get_MESH_NULL_IDX
- get_MESH_NULL_IDX(): number
Returns number
get_MULTIPLE_REGS
- get_MULTIPLE_REGS(): number
Returns number
get_NOT_CONNECTED
- get_NOT_CONNECTED(): number
Returns number
get_NULL_AREA
- get_NULL_AREA(): number
Returns number
get_WALKABLE_AREA
- get_WALKABLE_AREA(): number
Returns number
markBoxArea
- markBoxArea(ctx, bmin, bmax, areaId, chf): void
Parameters
bmin: readonly number[]
bmax: readonly number[]
areaId: number
Returns void
markConvexPolyArea
- markConvexPolyArea(ctx, verts, nverts, hmin, hmax, areaId, chf): void
Parameters
nverts: number
hmin: number
hmax: number
areaId: number
Returns void
markCylinderArea
- markCylinderArea(ctx, pos, r, h, areaId, chf): void
Parameters
pos: readonly number[]
r: number
h: number
areaId: number
Returns void
markWalkableTriangles
- markWalkableTriangles(ctx, walkableSlopeAngle, verts, nv, tris, nt, areas): void
Parameters
walkableSlopeAngle: number
nv: number
nt: number
Returns void
medianFilterWalkableArea
- medianFilterWalkableArea(ctx, chf): boolean
Returns boolean
mergePolyMeshDetails
- mergePolyMeshDetails(ctx, meshes, nmeshes, dmesh): boolean
Returns boolean
mergePolyMeshes
- mergePolyMeshes(ctx, meshes, nmeshes, mesh): boolean
Returns boolean
rasterizeTriangles
- rasterizeTriangles(ctx, verts, nv, tris, areas, nt, solid, flagMergeThr): boolean
Parameters
nv: number
nt: number
flagMergeThr: number
Returns boolean
setCon
- setCon(s, dir, i): void
Returns void
set_AREA_BORDER
- set_AREA_BORDER(AREA_BORDER): void
Returns void
set_BORDER_REG
- set_BORDER_REG(BORDER_REG): void
Returns void
set_BORDER_VERTEX
- set_BORDER_VERTEX(BORDER_VERTEX): void
Returns void
set_CONTOUR_REG_MASK
- set_CONTOUR_REG_MASK(CONTOUR_REG_MASK): void
Returns void
set_MESH_NULL_IDX
- set_MESH_NULL_IDX(MESH_NULL_IDX): void
Returns void
set_MULTIPLE_REGS
- set_MULTIPLE_REGS(MULTIPLE_REGS): void
Returns void
set_NOT_CONNECTED
- set_NOT_CONNECTED(NOT_CONNECTED): void
Returns void
set_NULL_AREA
- set_NULL_AREA(NULL_AREA): void
Returns void
set_WALKABLE_AREA
- set_WALKABLE_AREA(WALKABLE_AREA): void
Returns void