@recast-navigation/playcanvas 0.42.1 → 0.43.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.
@@ -0,0 +1,32 @@
1
+ import { Entity, Material, Vec3 } from 'playcanvas';
2
+ /**
3
+ * Parameters for creating OffMeshConnectionsHelper.
4
+ */
5
+ export type OffMeshConnectionsHelperParams = {
6
+ entryCircleMaterial?: Material;
7
+ exitCircleMaterial?: Material;
8
+ lineMaterial?: Material;
9
+ };
10
+ /**
11
+ * Represents an off-mesh connection between two points.
12
+ */
13
+ export type OffMeshConnectionParams = {
14
+ startPosition: Vec3;
15
+ endPosition: Vec3;
16
+ radius: number;
17
+ bidirectional: boolean;
18
+ };
19
+ export declare class OffMeshConnectionsHelper extends Entity {
20
+ offMeshConnections: OffMeshConnectionParams[];
21
+ entryCircleMaterial: Material;
22
+ exitCircleMaterial: Material;
23
+ lineMaterial: Material;
24
+ constructor(
25
+ offMeshConnections: OffMeshConnectionParams[],
26
+ params?: OffMeshConnectionsHelperParams,
27
+ );
28
+ /**
29
+ * Updates the visual representation of the off-mesh connections.
30
+ */
31
+ updateHelper(): void;
32
+ }
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.42.1",
4
+ "version": "0.43.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.42.1",
25
- "@recast-navigation/generators": "0.42.1"
24
+ "@recast-navigation/core": "0.43.1",
25
+ "@recast-navigation/generators": "0.43.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/core": "^7.28.0",
@@ -36,7 +36,7 @@
36
36
  "rollup": "^4.44.2",
37
37
  "rollup-plugin-copy": "^3.5.0",
38
38
  "rollup-plugin-filesize": "^10.0.0",
39
- "typescript": "^5.8.3"
39
+ "typescript": "^5.9.3"
40
40
  },
41
41
  "packageManager": "yarn@3.2.1",
42
42
  "peerDependencies": {