@recast-navigation/core 0.1.1 → 0.1.2
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/crowd.d.ts +4 -6
- package/dist/finalizer.d.ts +6 -0
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/nav-mesh-builder.d.ts +3 -2
- package/dist/nav-mesh-exporter.d.ts +1 -0
- package/dist/nav-mesh-generator.d.ts +3 -2
- package/dist/nav-mesh-importer.d.ts +2 -1
- package/dist/nav-mesh-query.d.ts +4 -2
- package/dist/nav-mesh.d.ts +11 -3
- package/dist/obstacle.d.ts +4 -4
- package/dist/tile-cache.d.ts +3 -2
- package/dist/utils.d.ts +8 -7
- package/package.json +7 -7
package/dist/crowd.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type R from '@recast-navigation/wasm';
|
|
2
2
|
import type { NavMesh } from './nav-mesh';
|
|
3
3
|
import { Vector3 } from './utils';
|
|
4
|
-
export
|
|
4
|
+
export type CrowdParams = {
|
|
5
5
|
/**
|
|
6
6
|
* The maximum number of agents that can be managed by the crowd.
|
|
7
7
|
* [Limit: >= 1]
|
|
@@ -17,7 +17,7 @@ export declare type CrowdParams = {
|
|
|
17
17
|
*/
|
|
18
18
|
navMesh: NavMesh;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type CrowdAgentParams = {
|
|
21
21
|
/**
|
|
22
22
|
* The radius of the agent.
|
|
23
23
|
* @default 0.5
|
|
@@ -102,6 +102,7 @@ export declare class Crowd {
|
|
|
102
102
|
* Time factor applied when updating crowd agents (default 1). A value of 0 will pause crowd updates.
|
|
103
103
|
*/
|
|
104
104
|
timeFactor: number;
|
|
105
|
+
private tmpVec1;
|
|
105
106
|
constructor({ maxAgents, maxAgentRadius, navMesh }: CrowdParams);
|
|
106
107
|
/**
|
|
107
108
|
* Adds a new agent to the crowd.
|
|
@@ -127,10 +128,6 @@ export declare class Crowd {
|
|
|
127
128
|
* Updates the crowd
|
|
128
129
|
*/
|
|
129
130
|
update(deltaTime: number): void;
|
|
130
|
-
/**
|
|
131
|
-
* Destroys the crowd.
|
|
132
|
-
*/
|
|
133
|
-
destroy(): void;
|
|
134
131
|
/**
|
|
135
132
|
* Returns the maximum number of agents that can be managed by the crowd.
|
|
136
133
|
*/
|
|
@@ -195,4 +192,5 @@ export declare class Crowd {
|
|
|
195
192
|
* The default is (1,1,1)
|
|
196
193
|
*/
|
|
197
194
|
setDefaultQueryExtent(extent: Vector3): void;
|
|
195
|
+
destroy(): void;
|
|
198
196
|
}
|