@soonspacejs/plugin-pathfinding 2.11.69 → 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/index.d.ts CHANGED
@@ -1,29 +1,24 @@
1
- import { Mesh, Object3D } from 'three';
2
- import { NavMesh, SoloNavMeshGeneratorConfig, NavMeshQuery } from '@recast-navigation/core';
1
+ import { Object3D } from 'three';
2
+ import { NavMesh, Crowd, CrowdParams } from '@recast-navigation/core';
3
+ import { SoloNavMeshGeneratorConfig } from '@recast-navigation/generators';
4
+ import { DebugDrawer, CrowdHelper, CrowdHelperParams } from '@recast-navigation/three';
3
5
  import SoonSpace from 'soonspacejs';
4
- import { IVector3 } from 'soonspacejs';
5
6
  declare class PathfindingPlugin {
6
7
  readonly ssp: SoonSpace;
7
8
  navMesh: NavMesh | null;
8
- navMeshQuery: NavMeshQuery | null;
9
- debugNavMesh: Mesh | null;
9
+ crowd: Crowd | null;
10
+ debugDrawer: DebugDrawer | null;
11
+ crowdHelper: CrowdHelper | null;
10
12
  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;
13
+ createSoloNavMesh(objects: Object3D[], config?: Partial<SoloNavMeshGeneratorConfig>): NavMesh | null;
14
+ disposeSoloNavMesh(): void;
15
+ _crowdUpdate: () => void;
16
+ createCrowd(params: CrowdParams): Crowd | null;
17
+ disposeCrowd(): void;
18
+ createDebugDrawer(): DebugDrawer | null;
19
+ disposeDebugDrawer(): void;
20
+ createCrowdHelper(params?: CrowdHelperParams): CrowdHelper | null;
21
+ disposeCrowdHelper(): void;
27
22
  dispose(): void;
28
23
  }
29
24
  export default PathfindingPlugin;