@recast-navigation/generators 0.36.1 → 0.37.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/index.mjs +9 -9
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -239,9 +239,9 @@ const generateSoloNavMesh = (positions, indices, navMeshGeneratorConfig = {}, ke
|
|
|
239
239
|
const navMeshCreateParams = new NavMeshCreateParams();
|
|
240
240
|
navMeshCreateParams.setPolyMeshCreateParams(polyMesh);
|
|
241
241
|
navMeshCreateParams.setPolyMeshDetailCreateParams(polyMeshDetail);
|
|
242
|
-
navMeshCreateParams.setWalkableHeight(config.walkableHeight);
|
|
243
|
-
navMeshCreateParams.setWalkableRadius(config.walkableRadius);
|
|
244
|
-
navMeshCreateParams.setWalkableClimb(config.walkableClimb);
|
|
242
|
+
navMeshCreateParams.setWalkableHeight(config.walkableHeight * config.ch);
|
|
243
|
+
navMeshCreateParams.setWalkableRadius(config.walkableRadius * config.cs);
|
|
244
|
+
navMeshCreateParams.setWalkableClimb(config.walkableClimb * config.ch);
|
|
245
245
|
navMeshCreateParams.setCellSize(config.cs);
|
|
246
246
|
navMeshCreateParams.setCellHeight(config.ch);
|
|
247
247
|
navMeshCreateParams.setBuildBvTree(true);
|
|
@@ -377,9 +377,9 @@ const generateTileCache = (positions, indices, navMeshGeneratorConfig = {}, keep
|
|
|
377
377
|
ch: config.ch,
|
|
378
378
|
width: config.tileSize,
|
|
379
379
|
height: config.tileSize,
|
|
380
|
-
walkableHeight: config.walkableHeight,
|
|
381
|
-
walkableRadius: config.walkableRadius,
|
|
382
|
-
walkableClimb: config.walkableClimb,
|
|
380
|
+
walkableHeight: config.walkableHeight * config.ch,
|
|
381
|
+
walkableRadius: config.walkableRadius * config.cs,
|
|
382
|
+
walkableClimb: config.walkableClimb * config.ch,
|
|
383
383
|
maxSimplificationError: config.maxSimplificationError,
|
|
384
384
|
maxTiles: tileWidth * tileHeight * expectedLayersPerTile,
|
|
385
385
|
maxObstacles
|
|
@@ -889,9 +889,9 @@ const generateTiledNavMesh = (positions, indices, navMeshGeneratorConfig = {}, k
|
|
|
889
889
|
const navMeshCreateParams = new NavMeshCreateParams();
|
|
890
890
|
navMeshCreateParams.setPolyMeshCreateParams(polyMesh);
|
|
891
891
|
navMeshCreateParams.setPolyMeshDetailCreateParams(polyMeshDetail);
|
|
892
|
-
navMeshCreateParams.setWalkableHeight(tileConfig.walkableHeight);
|
|
893
|
-
navMeshCreateParams.setWalkableRadius(tileConfig.walkableRadius);
|
|
894
|
-
navMeshCreateParams.setWalkableClimb(tileConfig.walkableClimb);
|
|
892
|
+
navMeshCreateParams.setWalkableHeight(tileConfig.walkableHeight * tileConfig.ch);
|
|
893
|
+
navMeshCreateParams.setWalkableRadius(tileConfig.walkableRadius * tileConfig.cs);
|
|
894
|
+
navMeshCreateParams.setWalkableClimb(tileConfig.walkableClimb * tileConfig.ch);
|
|
895
895
|
navMeshCreateParams.setCellSize(tileConfig.cs);
|
|
896
896
|
navMeshCreateParams.setCellHeight(tileConfig.ch);
|
|
897
897
|
navMeshCreateParams.setBuildBvTree(true);
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"email": "isaac@isaacmason.com",
|
|
7
7
|
"url": "https://isaacmason.com/"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.37.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"homepage": "https://github.com/isaac-mason/recast-navigation-js",
|
|
12
12
|
"bugs": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"lint": "eslint src"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@recast-navigation/core": "0.
|
|
31
|
-
"@recast-navigation/wasm": "0.
|
|
30
|
+
"@recast-navigation/core": "0.37.0",
|
|
31
|
+
"@recast-navigation/wasm": "0.37.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/core": "^7.24.5",
|