@recast-navigation/core 0.10.2 → 0.11.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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/nav-mesh-query.d.ts +6 -8
- package/package.json +2 -2
package/dist/nav-mesh-query.d.ts
CHANGED
|
@@ -17,6 +17,9 @@ export declare class NavMeshQuery {
|
|
|
17
17
|
z: number;
|
|
18
18
|
};
|
|
19
19
|
constructor(value: R.NavMeshQuery | NavMeshQueryParams);
|
|
20
|
+
/**
|
|
21
|
+
* Finds the polygon nearest to the given position.
|
|
22
|
+
*/
|
|
20
23
|
findNearestPoly(position: Vector3, options?: {
|
|
21
24
|
filter?: R.dtQueryFilter;
|
|
22
25
|
halfExtents?: Vector3;
|
|
@@ -31,6 +34,9 @@ export declare class NavMeshQuery {
|
|
|
31
34
|
};
|
|
32
35
|
isOverPoly: boolean;
|
|
33
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* Returns the closest point on the given polygon to the given position.
|
|
39
|
+
*/
|
|
34
40
|
closestPointOnPoly(polyRef: number, position: Vector3): {
|
|
35
41
|
success: boolean;
|
|
36
42
|
status: number;
|
|
@@ -55,11 +61,6 @@ export declare class NavMeshQuery {
|
|
|
55
61
|
}): Vector3;
|
|
56
62
|
/**
|
|
57
63
|
* Moves from the start to the end position constrained to the navigation mesh.
|
|
58
|
-
* @param startRef
|
|
59
|
-
* @param startPosition
|
|
60
|
-
* @param endPosition
|
|
61
|
-
* @param options
|
|
62
|
-
* @returns
|
|
63
64
|
*/
|
|
64
65
|
moveAlongSurface(startRef: number, startPosition: Vector3, endPosition: Vector3, options?: {
|
|
65
66
|
filter?: R.dtQueryFilter;
|
|
@@ -76,9 +77,6 @@ export declare class NavMeshQuery {
|
|
|
76
77
|
};
|
|
77
78
|
/**
|
|
78
79
|
* Gets the height of the polygon at the provided position using the height detail
|
|
79
|
-
* @param polyRef
|
|
80
|
-
* @param position
|
|
81
|
-
* @returns
|
|
82
80
|
*/
|
|
83
81
|
getPolyHeight(polyRef: number, position: Vector3): {
|
|
84
82
|
success: boolean;
|
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.11.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"homepage": "https://github.com/isaac-mason/recast-navigation-js",
|
|
12
12
|
"bugs": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"test": "vitest run"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@recast-navigation/wasm": "0.
|
|
28
|
+
"@recast-navigation/wasm": "0.11.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/core": "^7.22.11",
|