@soonspacejs/plugin-pathfinding 2.11.36 → 2.11.38
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/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# @soonspacejs/plugin-pathfinding
|
|
2
|
-
|
|
3
|
-
> Pathfinding plugin for SoonSpace.js
|
|
4
|
-
|
|
5
|
-
Document: [http://www.xwbuilders.com:8800/plugin/pathfinding.html](http://www.xwbuilders.com:8800/plugin/pathfinding.html)
|
|
1
|
+
# @soonspacejs/plugin-pathfinding
|
|
2
|
+
|
|
3
|
+
> Pathfinding plugin for SoonSpace.js
|
|
4
|
+
|
|
5
|
+
Document: [http://www.xwbuilders.com:8800/plugin/pathfinding.html](http://www.xwbuilders.com:8800/plugin/pathfinding.html)
|
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.38",
|
|
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,8 @@
|
|
|
13
13
|
],
|
|
14
14
|
"author": "xuek,jiangqi",
|
|
15
15
|
"license": "UNLICENSED",
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "af8d864a695bc488b8625268189a1b07eecd9775",
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"soonspacejs": "2.11.
|
|
18
|
+
"soonspacejs": "2.11.38"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -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
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Mesh, Object3D } from 'three';
|
|
2
|
-
import { NavMesh, SoloNavMeshGeneratorConfig, NavMeshQuery } from '@recast-navigation/core';
|
|
3
|
-
import SoonSpace from 'soonspacejs';
|
|
4
|
-
import { IVector3 } from 'soonspacejs/types/Interface';
|
|
5
|
-
declare class PathfindingPlugin {
|
|
6
|
-
readonly ssp: SoonSpace;
|
|
7
|
-
navMesh: NavMesh | null;
|
|
8
|
-
navMeshQuery: NavMeshQuery | null;
|
|
9
|
-
debugNavMesh: Mesh | null;
|
|
10
|
-
constructor(ssp: SoonSpace);
|
|
11
|
-
static ready(): Promise<void>;
|
|
12
|
-
createNavMesh(objects?: Object3D[], options?: Partial<SoloNavMeshGeneratorConfig>): void;
|
|
13
|
-
createDebugNavMesh(): Mesh | null;
|
|
14
|
-
/**
|
|
15
|
-
* Returns the closest point on the NavMesh to the given position.
|
|
16
|
-
* @param position
|
|
17
|
-
* @returns
|
|
18
|
-
*/
|
|
19
|
-
getClosestPoint(position: IVector3): IVector3 | null;
|
|
20
|
-
/**
|
|
21
|
-
* Finds a path from the start position to the end position.
|
|
22
|
-
* @param start
|
|
23
|
-
* @param end
|
|
24
|
-
* @returns
|
|
25
|
-
*/
|
|
26
|
-
computePath(start: IVector3, end: IVector3): IVector3[] | null;
|
|
27
|
-
dispose(): void;
|
|
28
|
-
}
|
|
29
|
-
export default PathfindingPlugin;
|