@recast-navigation/core 0.1.1 → 0.2.0

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 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 declare type CrowdParams = {
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 declare type CrowdAgentParams = {
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
  }
@@ -0,0 +1,6 @@
1
+ export declare const finalizer: {
2
+ register: (target: {
3
+ destroy: () => void;
4
+ }) => void;
5
+ unregister: (target: any) => void;
6
+ };
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './nav-mesh-generator';
7
7
  export * from './nav-mesh-importer';
8
8
  export * from './nav-mesh-query';
9
9
  export * from './obstacle';
10
+ export * from './wrappers';
10
11
  export * from './tile-cache';
11
12
  export * from './utils';
12
13
  export * from './wasm';