@recast-navigation/playcanvas 0.41.0 → 0.42.1

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/README.md CHANGED
@@ -40,7 +40,7 @@ await init();
40
40
 
41
41
  ### Generating a NavMesh
42
42
 
43
- This package provides convenience functions for generating nav meshes from playcanvas MeshInstance objects.
43
+ This package provides convenience functions for generating nav meshes from PlayCanvas MeshInstance objects.
44
44
 
45
45
  ```ts
46
46
  import { init } from 'recast-navigation';
@@ -77,7 +77,7 @@ This library provides helpers that are used in conjunction with the core library
77
77
 
78
78
  ### Helpers
79
79
 
80
- This package provides helpers for visualizing various recast-navigation objects in playcanvas.
80
+ This package provides helpers for visualizing various recast-navigation objects in PlayCanvas.
81
81
 
82
82
  #### `NavMeshHelper`
83
83
 
@@ -86,7 +86,7 @@ import { NavMeshHelper } from '@recast-navigation/playcanvas';
86
86
 
87
87
  const navMeshHelper = new NavMeshHelper(navMesh, graphicsDevice);
88
88
 
89
- this.entity.add(navMeshHelper);
89
+ this.entity.addChild(navMeshHelper);
90
90
 
91
91
  // update the helper when the navmesh changes
92
92
  navMeshHelper.update();
@@ -101,7 +101,7 @@ import { TileCacheHelper } from '@recast-navigation/playcanvas';
101
101
 
102
102
  const tileCacheHelper = new TileCacheHelper(tileCache);
103
103
 
104
- this.entity.add(tileCacheHelper);
104
+ this.entity.addChild(tileCacheHelper);
105
105
 
106
106
  // update the helper after adding or removing obstacles
107
107
  tileCacheHelper.update();
@@ -116,7 +116,7 @@ import { CrowdHelper } from '@recast-navigation/playcanvas';
116
116
 
117
117
  const crowdHelper = new CrowdHelper(crowd, graphicsDevice);
118
118
 
119
- this.entity.add(crowdHelper);
119
+ this.entity.addChild(crowdHelper);
120
120
 
121
121
  // update the helper after updating the crowd
122
122
  crowdHelper.update();
package/dist/index.mjs CHANGED
@@ -612,9 +612,9 @@ const pcToTiledNavMesh = (meshes, navMeshGeneratorConfig = {}, keepIntermediates
612
612
  const [positions, indices] = getPositionsAndIndices(meshes);
613
613
  return generateTiledNavMesh(positions, indices, navMeshGeneratorConfig, keepIntermediates);
614
614
  };
615
- const threeToTileCache = (meshes, navMeshGeneratorConfig = {}, keepIntermediates = false) => {
615
+ const pcToTileCache = (meshes, navMeshGeneratorConfig = {}, keepIntermediates = false) => {
616
616
  const [positions, indices] = getPositionsAndIndices(meshes);
617
617
  return generateTileCache(positions, indices, navMeshGeneratorConfig, keepIntermediates);
618
618
  };
619
619
 
620
- export { CrowdHelper, DebugDrawer, NavMeshHelper, TileCacheHelper, getPositionsAndIndices, pcToSoloNavMesh, pcToTiledNavMesh, threeToTileCache };
620
+ export { CrowdHelper, DebugDrawer, NavMeshHelper, TileCacheHelper, getPositionsAndIndices, pcToSoloNavMesh, pcToTileCache, pcToTiledNavMesh };
@@ -2,4 +2,4 @@ import { type SoloNavMeshGeneratorConfig, type TileCacheGeneratorConfig, type Ti
2
2
  import type { MeshInstance } from 'playcanvas';
3
3
  export declare const pcToSoloNavMesh: (meshes: MeshInstance[], navMeshGeneratorConfig?: Partial<SoloNavMeshGeneratorConfig>, keepIntermediates?: boolean) => import("@recast-navigation/generators").GenerateSoloNavMeshResult;
4
4
  export declare const pcToTiledNavMesh: (meshes: MeshInstance[], navMeshGeneratorConfig?: Partial<TiledNavMeshGeneratorConfig>, keepIntermediates?: boolean) => import("@recast-navigation/generators").GenerateTiledNavMeshResult;
5
- export declare const threeToTileCache: (meshes: MeshInstance[], navMeshGeneratorConfig?: Partial<TileCacheGeneratorConfig>, keepIntermediates?: boolean) => import("@recast-navigation/generators").TileCacheGeneratorResult;
5
+ export declare const pcToTileCache: (meshes: MeshInstance[], navMeshGeneratorConfig?: Partial<TileCacheGeneratorConfig>, keepIntermediates?: boolean) => import("@recast-navigation/generators").TileCacheGeneratorResult;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@recast-navigation/playcanvas",
3
3
  "description": "Utilities for using recast-navigation with PlayCanvas",
4
- "version": "0.41.0",
4
+ "version": "0.42.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/isaac-mason/recast-navigation-js",
7
7
  "bugs": {
@@ -21,8 +21,8 @@
21
21
  "test": "tsc"
22
22
  },
23
23
  "dependencies": {
24
- "@recast-navigation/core": "0.41.0",
25
- "@recast-navigation/generators": "0.41.0"
24
+ "@recast-navigation/core": "0.42.1",
25
+ "@recast-navigation/generators": "0.42.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/core": "^7.28.0",