babylonjs-addons 8.30.2 → 8.30.4

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.
@@ -127,6 +127,10 @@ export interface INavMeshParametersV2 extends INavMeshParameters {
127
127
  * Function which is sets the polyAreas and polyFlags for the tile cache mesh. Defaults to a function that sets all areas to 0 and flags to 1.
128
128
  */
129
129
  tileCacheMeshProcess?: any;
130
+ /**
131
+ * Don't reverse indices of the source mesh
132
+ */
133
+ doNotReverseIndices?: boolean;
130
134
  }
131
135
  /**
132
136
  * Result of a steer target computation.
@@ -1365,7 +1369,9 @@ import { Mesh } from "babylonjs/Meshes/mesh";
1365
1369
  * @param meshes The array of meshes from which to extract positions and indices.
1366
1370
  * @returns A tuple containing a Float32Array of positions and a Uint32Array of
1367
1371
  */
1368
- export function GetPositionsAndIndices(meshes: Mesh[]): [positions: Float32Array, indices: Uint32Array];
1372
+ export function GetPositionsAndIndices(meshes: Mesh[], options?: {
1373
+ doNotReverseIndices?: boolean;
1374
+ }): [positions: Float32Array, indices: Uint32Array];
1369
1375
  /**
1370
1376
  * Reverses the order of vertices in each triangle (3 indices per face) to ensure
1371
1377
  * that the winding order is consistent with the Recast Navigation requirements.
@@ -3560,6 +3566,10 @@ declare module ADDONS {
3560
3566
  * Function which is sets the polyAreas and polyFlags for the tile cache mesh. Defaults to a function that sets all areas to 0 and flags to 1.
3561
3567
  */
3562
3568
  tileCacheMeshProcess?: any;
3569
+ /**
3570
+ * Don't reverse indices of the source mesh
3571
+ */
3572
+ doNotReverseIndices?: boolean;
3563
3573
  }
3564
3574
  /**
3565
3575
  * Result of a steer target computation.
@@ -4712,7 +4722,9 @@ declare module ADDONS {
4712
4722
  * @param meshes The array of meshes from which to extract positions and indices.
4713
4723
  * @returns A tuple containing a Float32Array of positions and a Uint32Array of
4714
4724
  */
4715
- export function GetPositionsAndIndices(meshes: BABYLON.Mesh[]): [positions: Float32Array, indices: Uint32Array];
4725
+ export function GetPositionsAndIndices(meshes: BABYLON.Mesh[], options?: {
4726
+ doNotReverseIndices?: boolean;
4727
+ }): [positions: Float32Array, indices: Uint32Array];
4716
4728
  /**
4717
4729
  * Reverses the order of vertices in each triangle (3 indices per face) to ensure
4718
4730
  * that the winding order is consistent with the Recast Navigation requirements.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-addons",
3
- "version": "8.30.2",
3
+ "version": "8.30.4",
4
4
  "main": "babylonjs.addons.min.js",
5
5
  "types": "babylonjs.addons.module.d.ts",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "test:escheck": "es-check es6 ./babylonjs.addons.js"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "^8.30.2"
18
+ "babylonjs": "^8.30.4"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",