@quenty/pathfindingutils 7.0.0-canary.331.7eefa75.0 → 7.0.1-canary.433.80025dc.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/CHANGELOG.md CHANGED
@@ -3,7 +3,82 @@
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
- # [7.0.0-canary.331.7eefa75.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/pathfindingutils@6.2.0...@quenty/pathfindingutils@7.0.0-canary.331.7eefa75.0) (2023-02-27)
6
+ ## [7.0.1-canary.433.80025dc.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/pathfindingutils@7.0.0...@quenty/pathfindingutils@7.0.1-canary.433.80025dc.0) (2023-12-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * Draw lines when calling `PathfindingUtils.visualizePath` which helps diagnose the path better ([5f3e21e](https://github.com/Quenty/NevermoreEngine/commit/5f3e21ea63c5d652904d28233f2a1ad65cd4ab66))
12
+
13
+
14
+
15
+
16
+
17
+ # [7.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/pathfindingutils@6.9.0...@quenty/pathfindingutils@7.0.0) (2023-10-11)
18
+
19
+ **Note:** Version bump only for package @quenty/pathfindingutils
20
+
21
+
22
+
23
+
24
+
25
+ # [6.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/pathfindingutils@6.8.0...@quenty/pathfindingutils@6.9.0) (2023-08-23)
26
+
27
+ **Note:** Version bump only for package @quenty/pathfindingutils
28
+
29
+
30
+
31
+
32
+
33
+ # [6.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/pathfindingutils@6.7.0...@quenty/pathfindingutils@6.8.0) (2023-07-28)
34
+
35
+ **Note:** Version bump only for package @quenty/pathfindingutils
36
+
37
+
38
+
39
+
40
+
41
+ # [6.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/pathfindingutils@6.6.0...@quenty/pathfindingutils@6.7.0) (2023-06-17)
42
+
43
+ **Note:** Version bump only for package @quenty/pathfindingutils
44
+
45
+
46
+
47
+
48
+
49
+ # [6.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/pathfindingutils@6.5.1...@quenty/pathfindingutils@6.6.0) (2023-04-10)
50
+
51
+ **Note:** Version bump only for package @quenty/pathfindingutils
52
+
53
+
54
+
55
+
56
+
57
+ ## [6.5.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/pathfindingutils@6.5.0...@quenty/pathfindingutils@6.5.1) (2023-04-07)
58
+
59
+ **Note:** Version bump only for package @quenty/pathfindingutils
60
+
61
+
62
+
63
+
64
+
65
+ # [6.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/pathfindingutils@6.4.0...@quenty/pathfindingutils@6.5.0) (2023-03-31)
66
+
67
+ **Note:** Version bump only for package @quenty/pathfindingutils
68
+
69
+
70
+
71
+
72
+
73
+ # [6.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/pathfindingutils@6.3.0...@quenty/pathfindingutils@6.4.0) (2023-03-05)
74
+
75
+ **Note:** Version bump only for package @quenty/pathfindingutils
76
+
77
+
78
+
79
+
80
+
81
+ # [6.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/pathfindingutils@6.2.0...@quenty/pathfindingutils@6.3.0) (2023-02-27)
7
82
 
8
83
  **Note:** Version bump only for package @quenty/pathfindingutils
9
84
 
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-2022 Quenty
3
+ Copyright (c) 2014-2023 James Onnen (Quenty)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/pathfindingutils",
3
- "version": "7.0.0-canary.331.7eefa75.0",
3
+ "version": "7.0.1-canary.433.80025dc.0",
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": "4.2.0",
30
- "@quenty/loader": "6.1.0",
31
- "@quenty/maid": "2.4.0",
32
- "@quenty/promise": "7.0.0-canary.331.7eefa75.0"
29
+ "@quenty/draw": "4.3.0",
30
+ "@quenty/loader": "7.0.1-canary.433.80025dc.0",
31
+ "@quenty/maid": "2.6.0",
32
+ "@quenty/promise": "7.0.1-canary.433.80025dc.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "7eefa756f8bd892b1210349a8133d6d56992dffb"
37
+ "gitHead": "80025dcd926765b502d322bb84e013b973409d8c"
38
38
  }
@@ -63,16 +63,24 @@ function PathfindingUtils.visualizePath(path)
63
63
  parent.Name = "PathVisualization"
64
64
  maid:GiveTask(parent)
65
65
 
66
+ local lastWaypoint
67
+
66
68
  for index, waypoint in pairs(path:GetWaypoints()) do
69
+
67
70
  if waypoint.Action == Enum.PathWaypointAction.Walk then
68
- local point = Draw.point(waypoint.Position, Color3.new(0.5, 1, 0.5), parent)
69
- point.Name = ("%03d_WalkPoint"):format(index)
70
- maid:GiveTask(point)
71
+ local point = maid:Add(Draw.point(waypoint.Position, Color3.new(0.5, 1, 0.5), parent))
72
+ point.Name = string.format("%03d_WalkPoint", index)
71
73
  elseif waypoint.Action == Enum.PathWaypointAction.Jump then
72
- local point = Draw.point(waypoint.Position, Color3.new(0.5, 0.5, 1), parent)
73
- point.Name = ("%03d_JumpPoint"):format(index)
74
- maid:GiveTask(point)
74
+ local point = maid:Add(Draw.point(waypoint.Position, Color3.new(0.5, 0.5, 1), parent))
75
+ point.Name = string.format("%03d_JumpPoint", index)
76
+ end
77
+
78
+ if lastWaypoint then
79
+ local line = maid:Add(Draw.line(waypoint.Position, lastWaypoint.Position))
80
+ line.Name = string.format("%03d_Line", index)
81
+ line.Parent = parent
75
82
  end
83
+ lastWaypoint = waypoint
76
84
  end
77
85
 
78
86
  parent.Parent = Draw.getDefaultParent()