recast-navigation 0.31.0 → 0.32.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.
Files changed (2) hide show
  1. package/README.md +12 -12
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -375,9 +375,9 @@ If many obstacle requests have been made and you need to avoid reaching the 64 o
375
375
  ```ts
376
376
  /* add a Box obstacle to the NavMesh */
377
377
  const position = { x: 0, y: 0, z: 0 };
378
- const extent = { x: 1, y: 1, z: 1 };
378
+ const halfExtents = { x: 1, y: 1, z: 1 };
379
379
  const angle = 0;
380
- const addBoxObstacleResult = tileCache.addBoxObstacle(position, extent, angle);
380
+ const addBoxObstacleResult = tileCache.addBoxObstacle(position, halfExtents, angle);
381
381
  const boxObstacle = addBoxObstacleResult.obstacle;
382
382
 
383
383
  /* add a Cylinder obstacle to the NavMesh */
@@ -500,7 +500,7 @@ If you need to work with status codes programmatically, you can use these utilit
500
500
 
501
501
  ```ts
502
502
  import {
503
- Raw,
503
+ Detour,
504
504
  statusSucceed,
505
505
  statusInProgress,
506
506
  statusFailed,
@@ -517,15 +517,15 @@ const inProgress = statusInProgress(status);
517
517
  const failed = statusFailed(status);
518
518
 
519
519
  // get the detail of the status
520
- const detail = Raw.Detour.BUFFER_TOO_SMALL;
521
- // Raw.Detour.WRONG_MAGIC;
522
- // Raw.Detour.WRONG_VERSION;
523
- // Raw.Detour.OUT_OF_MEMORY;
524
- // Raw.Detour.INVALID_PARAM;
525
- // Raw.Detour.BUFFER_TOO_SMALL;
526
- // Raw.Detour.OUT_OF_NODES;
527
- // Raw.Detour.PARTIAL_RESULT;
528
- // Raw.Detour.ALREADY_OCCUPIED;
520
+ const detail = Detour.DT_BUFFER_TOO_SMALL;
521
+ // Detour.DT_WRONG_MAGIC;
522
+ // Detour.DT_WRONG_VERSION;
523
+ // Detour.DT_OUT_OF_MEMORY;
524
+ // Detour.DT_INVALID_PARAM;
525
+ // Detour.DT_BUFFER_TOO_SMALL;
526
+ // Detour.DT_OUT_OF_NODES;
527
+ // Detour.DT_PARTIAL_RESULT;
528
+ // Detour.DT_ALREADY_OCCUPIED;
529
529
 
530
530
  const detail = statusDetail(status, detail);
531
531
  ```
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "email": "isaac@isaacmason.com",
19
19
  "url": "https://isaacmason.com/"
20
20
  },
21
- "version": "0.31.0",
21
+ "version": "0.32.0",
22
22
  "license": "MIT",
23
23
  "homepage": "https://github.com/isaac-mason/recast-navigation-js",
24
24
  "bugs": {
@@ -67,9 +67,9 @@
67
67
  "lint": "eslint --ext .ts src"
68
68
  },
69
69
  "dependencies": {
70
- "@recast-navigation/core": "0.31.0",
71
- "@recast-navigation/generators": "0.31.0",
72
- "@recast-navigation/three": "0.31.0"
70
+ "@recast-navigation/core": "0.32.0",
71
+ "@recast-navigation/generators": "0.32.0",
72
+ "@recast-navigation/three": "0.32.0"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@babel/core": "^7.24.5",