@recast-navigation/core 0.34.0 → 0.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/debug-drawer-utils.d.ts +43 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +3209 -2
- package/dist/raw.d.ts +13 -36
- package/package.json +3 -4
- package/dist/index.mjs.map +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { NavMesh } from './nav-mesh';
|
|
2
|
+
import { NavMeshQuery } from './nav-mesh-query';
|
|
3
|
+
import { RecastCompactHeightfield, RecastContourSet, RecastHeightfield, RecastHeightfieldLayer, RecastHeightfieldLayerSet, RecastPolyMesh, RecastPolyMeshDetail } from './recast';
|
|
4
|
+
export type DebugDrawerPrimitiveType = 'lines' | 'tris' | 'quads' | 'points';
|
|
5
|
+
export type DebugDrawerPrimitive = {
|
|
6
|
+
type: DebugDrawerPrimitiveType;
|
|
7
|
+
vertices: [x: number, y: number, z: number, r: number, g: number, b: number, a: number][];
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Represents a helper class to visualize navigation cur and related data in PlayCanvas.
|
|
11
|
+
*/
|
|
12
|
+
export declare class DebugDrawerUtils {
|
|
13
|
+
private debugDrawImpl;
|
|
14
|
+
private currentPrimitiveType;
|
|
15
|
+
private currentVertices;
|
|
16
|
+
private primitives;
|
|
17
|
+
constructor();
|
|
18
|
+
private flush;
|
|
19
|
+
drawHeightfieldSolid(hf: RecastHeightfield): DebugDrawerPrimitive[];
|
|
20
|
+
drawHeightfieldWalkable(hf: RecastHeightfield): DebugDrawerPrimitive[];
|
|
21
|
+
drawCompactHeightfieldSolid(chf: RecastCompactHeightfield): DebugDrawerPrimitive[];
|
|
22
|
+
drawCompactHeightfieldRegions(chf: RecastCompactHeightfield): DebugDrawerPrimitive[];
|
|
23
|
+
drawCompactHeightfieldDistance(chf: RecastCompactHeightfield): DebugDrawerPrimitive[];
|
|
24
|
+
drawHeightfieldLayer(layer: RecastHeightfieldLayer, idx: number): DebugDrawerPrimitive[];
|
|
25
|
+
drawHeightfieldLayers(lset: RecastHeightfieldLayerSet): DebugDrawerPrimitive[];
|
|
26
|
+
drawRegionConnections(cset: RecastContourSet, alpha?: number): DebugDrawerPrimitive[];
|
|
27
|
+
drawRawContours(cset: RecastContourSet, alpha?: number): DebugDrawerPrimitive[];
|
|
28
|
+
drawContours(cset: RecastContourSet, alpha?: number): DebugDrawerPrimitive[];
|
|
29
|
+
drawPolyMesh(mesh: RecastPolyMesh): DebugDrawerPrimitive[];
|
|
30
|
+
drawPolyMeshDetail(dmesh: RecastPolyMeshDetail): DebugDrawerPrimitive[];
|
|
31
|
+
drawNavMesh(mesh: NavMesh, flags?: number): DebugDrawerPrimitive[];
|
|
32
|
+
drawNavMeshWithClosedList(mesh: NavMesh, query: NavMeshQuery, flags?: number): DebugDrawerPrimitive[];
|
|
33
|
+
drawNavMeshNodes(query: NavMeshQuery): DebugDrawerPrimitive[];
|
|
34
|
+
drawNavMeshBVTree(mesh: NavMesh): DebugDrawerPrimitive[];
|
|
35
|
+
drawNavMeshPortals(mesh: NavMesh): DebugDrawerPrimitive[];
|
|
36
|
+
drawNavMeshPolysWithFlags(mesh: NavMesh, flags: number, col: number): DebugDrawerPrimitive[];
|
|
37
|
+
drawNavMeshPoly(mesh: NavMesh, ref: number, col: number): DebugDrawerPrimitive[];
|
|
38
|
+
/**
|
|
39
|
+
* Disposes of the debug drawer and releases resources.
|
|
40
|
+
*/
|
|
41
|
+
dispose(): void;
|
|
42
|
+
private vertex;
|
|
43
|
+
}
|