@quenty/draw 7.5.0 → 7.6.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 +11 -0
- package/package.json +4 -4
- package/src/Shared/Draw.lua +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/draw@7.5.0...@quenty/draw@7.6.0) (2024-10-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Draw.updateRay renders properly ([ec1fd94](https://github.com/Quenty/NevermoreEngine/commit/ec1fd94ba5f1edd3332975d97bc26cdcf85f65c3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [7.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/draw@7.4.0...@quenty/draw@7.5.0) (2024-09-25)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/draw
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/draw",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"description": "A utility library to debug things in 3D space for Roblox.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@quenty/loader": "^10.
|
|
33
|
-
"@quenty/maid": "^3.
|
|
32
|
+
"@quenty/loader": "^10.6.0",
|
|
33
|
+
"@quenty/maid": "^3.4.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "035abfa088c854a73e1c65b350267eaa17669646"
|
|
36
36
|
}
|
package/src/Shared/Draw.lua
CHANGED
|
@@ -357,7 +357,7 @@ function Draw.updateRay(rayPart, ray, color, diameter)
|
|
|
357
357
|
assert(typeof(rayPart) == "Instance", "Bad rayPart")
|
|
358
358
|
assert(typeof(ray) == "Ray", "Bad typeof(ray) for Ray")
|
|
359
359
|
color = Draw._toColor3(color) or rayPart.Color
|
|
360
|
-
diameter = diameter or rayPart.Size.
|
|
360
|
+
diameter = diameter or rayPart.Size.z
|
|
361
361
|
|
|
362
362
|
local rayCenter = ray.Origin + ray.Direction/2
|
|
363
363
|
local distance = ray.Direction.Magnitude
|
|
@@ -366,11 +366,11 @@ function Draw.updateRay(rayPart, ray, color, diameter)
|
|
|
366
366
|
rayPart.Size = Vector3.new(distance, diameter, diameter)
|
|
367
367
|
rayPart.CFrame = CFrame.new(rayCenter, ray.Origin + ray.Direction) * CFrame.Angles(0, math.pi/2, 0)
|
|
368
368
|
|
|
369
|
-
local
|
|
370
|
-
if
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
369
|
+
local cylinderHandleAdornment = rayPart:FindFirstChildWhichIsA("CylinderHandleAdornment")
|
|
370
|
+
if cylinderHandleAdornment then
|
|
371
|
+
cylinderHandleAdornment.Height = ray.Direction.Magnitude
|
|
372
|
+
cylinderHandleAdornment.Radius = diameter/4
|
|
373
|
+
cylinderHandleAdornment.Color3 = color
|
|
374
374
|
end
|
|
375
375
|
|
|
376
376
|
local partSize = rayPart.Size
|