@soonspacejs/plugin-pathfinding 2.11.68 → 2.11.70
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/utils.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InstancedMesh, Mesh, Object3D } from 'three';
|
|
2
|
+
export declare function deInstancingMesh(insMesh: InstancedMesh): Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>[];
|
|
3
|
+
export declare function getVertices(objects: Object3D[]): {
|
|
4
|
+
positions: Float32Array;
|
|
5
|
+
indices: Uint32Array;
|
|
6
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soonspacejs/plugin-pathfinding",
|
|
3
3
|
"pluginName": "PathfindingPlugin",
|
|
4
|
-
"version": "2.11.
|
|
4
|
+
"version": "2.11.70",
|
|
5
5
|
"description": "Pathfinding plugin for SoonSpace.js",
|
|
6
6
|
"main": "dist/index.esm.js",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
@@ -13,8 +13,12 @@
|
|
|
13
13
|
],
|
|
14
14
|
"author": "xuek,jiangqi",
|
|
15
15
|
"license": "UNLICENSED",
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "05c206c574a3ccf65377d5e787161cdaa0c1cdca",
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"
|
|
18
|
+
"@recast-navigation/core": "^0.38.0",
|
|
19
|
+
"@recast-navigation/generators": "^0.38.0",
|
|
20
|
+
"@recast-navigation/three": "^0.38.0",
|
|
21
|
+
"@recast-navigation/wasm": "^0.38.0",
|
|
22
|
+
"soonspacejs": "2.11.70"
|
|
19
23
|
}
|
|
20
24
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NavMesh } from '@recast-navigation/core';
|
|
2
|
-
import { Material, Mesh } from 'three';
|
|
3
|
-
export type NavMeshHelperParams = {
|
|
4
|
-
navMesh: NavMesh;
|
|
5
|
-
navMeshMaterial?: Material;
|
|
6
|
-
};
|
|
7
|
-
export declare class NavMeshHelper {
|
|
8
|
-
navMesh: Mesh;
|
|
9
|
-
navMeshMaterial: Material;
|
|
10
|
-
recastNavMesh: NavMesh;
|
|
11
|
-
constructor({ navMesh, navMeshMaterial, }: NavMeshHelperParams);
|
|
12
|
-
/**
|
|
13
|
-
* Update the three debug nav mesh.
|
|
14
|
-
*
|
|
15
|
-
* This should be called after updating the nav mesh.
|
|
16
|
-
*/
|
|
17
|
-
updateNavMesh(): void;
|
|
18
|
-
}
|