@quenty/pathfindingutils 10.10.0 → 10.10.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/CHANGELOG.md +8 -0
- package/package.json +4 -4
- package/src/Shared/PathfindingUtils.lua +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.10.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/pathfindingutils@10.10.0...@quenty/pathfindingutils@10.10.1) (2025-03-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/pathfindingutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [10.10.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/pathfindingutils@10.9.0...@quenty/pathfindingutils@10.10.0) (2025-02-18)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/pathfindingutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/pathfindingutils",
|
|
3
|
-
"version": "10.10.
|
|
3
|
+
"version": "10.10.1",
|
|
4
4
|
"description": "Utilities involving pathfinding in Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/draw": "^7.8.
|
|
29
|
+
"@quenty/draw": "^7.8.1",
|
|
30
30
|
"@quenty/loader": "^10.8.0",
|
|
31
31
|
"@quenty/maid": "^3.4.0",
|
|
32
|
-
"@quenty/promise": "^10.10.
|
|
32
|
+
"@quenty/promise": "^10.10.1"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "6b7c3e15e60cdb185986207b574e2b5591261e7a"
|
|
38
38
|
}
|
|
@@ -19,7 +19,7 @@ local PathfindingUtils = {}
|
|
|
19
19
|
@param finish Vector3
|
|
20
20
|
@return Promise<Path>
|
|
21
21
|
]=]
|
|
22
|
-
function PathfindingUtils.promiseComputeAsync(path, start, finish)
|
|
22
|
+
function PathfindingUtils.promiseComputeAsync(path: Path, start: Vector3, finish: Vector3)
|
|
23
23
|
assert(path, "Bad path")
|
|
24
24
|
assert(start, "Bad start")
|
|
25
25
|
assert(finish, "Bad finish")
|
|
@@ -43,7 +43,7 @@ end
|
|
|
43
43
|
@param startIndex number
|
|
44
44
|
@return Promise<number>
|
|
45
45
|
]=]
|
|
46
|
-
function PathfindingUtils.promiseCheckOcclusion(path, startIndex)
|
|
46
|
+
function PathfindingUtils.promiseCheckOcclusion(path: Path, startIndex: number)
|
|
47
47
|
return Promise.spawn(function(resolve, _)
|
|
48
48
|
resolve(path:CheckOcclusionAsync(startIndex))
|
|
49
49
|
end)
|
|
@@ -56,7 +56,7 @@ end
|
|
|
56
56
|
@param path Path
|
|
57
57
|
@return MaidTask
|
|
58
58
|
]=]
|
|
59
|
-
function PathfindingUtils.visualizePath(path)
|
|
59
|
+
function PathfindingUtils.visualizePath(path: Path)
|
|
60
60
|
local maid = Maid.new()
|
|
61
61
|
|
|
62
62
|
local parent = Instance.new("Folder")
|
|
@@ -66,7 +66,6 @@ function PathfindingUtils.visualizePath(path)
|
|
|
66
66
|
local lastWaypoint
|
|
67
67
|
|
|
68
68
|
for index, waypoint in pairs(path:GetWaypoints()) do
|
|
69
|
-
|
|
70
69
|
if waypoint.Action == Enum.PathWaypointAction.Walk then
|
|
71
70
|
local point = maid:Add(Draw.point(waypoint.Position, Color3.new(0.5, 1, 0.5), parent))
|
|
72
71
|
point.Name = string.format("%03d_WalkPoint", index)
|
|
@@ -88,4 +87,4 @@ function PathfindingUtils.visualizePath(path)
|
|
|
88
87
|
return maid
|
|
89
88
|
end
|
|
90
89
|
|
|
91
|
-
return PathfindingUtils
|
|
90
|
+
return PathfindingUtils
|