@quenty/draw 2.2.1 → 3.0.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 +19 -0
- package/package.json +2 -2
- package/src/Shared/Draw.lua +10 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
# [3.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/draw@2.2.2...@quenty/draw@3.0.0) (2022-03-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/draw
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.2.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/draw@2.2.1...@quenty/draw@2.2.2) (2022-01-16)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* Disable CanTouch and CanQuery ([#246](https://github.com/Quenty/NevermoreEngine/issues/246)) ([2f5d6e0](https://github.com/Quenty/NevermoreEngine/commit/2f5d6e006176ac4b5e15b29efe8f3b8b842a1a7b))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/draw@2.2.0...@quenty/draw@2.2.1) (2021-12-30)
|
|
7
26
|
|
|
8
27
|
**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": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "A utility library to debug things in 3D space for Roblox.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "dd428cab58282c975a4c082957dc8f58e3186905"
|
|
32
32
|
}
|
package/src/Shared/Draw.lua
CHANGED
|
@@ -84,6 +84,8 @@ function Draw.ray(ray, color, parent, meshDiameter, diameter)
|
|
|
84
84
|
part.Anchored = true
|
|
85
85
|
part.Archivable = false
|
|
86
86
|
part.CanCollide = false
|
|
87
|
+
part.CanQuery = false
|
|
88
|
+
part.CanTouch = false
|
|
87
89
|
part.CastShadow = false
|
|
88
90
|
part.CFrame = CFrame.new(rayCenter, ray.Origin + ray.Direction) * CFrame.Angles(math.pi/2, 0, 0)
|
|
89
91
|
part.Color = color
|
|
@@ -98,6 +100,8 @@ function Draw.ray(ray, color, parent, meshDiameter, diameter)
|
|
|
98
100
|
rotatedPart.Anchored = true
|
|
99
101
|
rotatedPart.Archivable = false
|
|
100
102
|
rotatedPart.CanCollide = false
|
|
103
|
+
part.CanQuery = false
|
|
104
|
+
part.CanTouch = false
|
|
101
105
|
rotatedPart.CastShadow = false
|
|
102
106
|
rotatedPart.CFrame = CFrame.new(ray.Origin, ray.Origin + ray.Direction)
|
|
103
107
|
rotatedPart.Transparency = 1
|
|
@@ -305,7 +309,7 @@ end
|
|
|
305
309
|
]=]
|
|
306
310
|
function Draw.point(position, color, parent, diameter)
|
|
307
311
|
if typeof(position) == "CFrame" then
|
|
308
|
-
position = position.
|
|
312
|
+
position = position.Position
|
|
309
313
|
end
|
|
310
314
|
|
|
311
315
|
assert(typeof(position) == "Vector3", "Bad position")
|
|
@@ -320,6 +324,8 @@ function Draw.point(position, color, parent, diameter)
|
|
|
320
324
|
part.Archivable = false
|
|
321
325
|
part.BottomSurface = Enum.SurfaceType.Smooth
|
|
322
326
|
part.CanCollide = false
|
|
327
|
+
part.CanQuery = false
|
|
328
|
+
part.CanTouch = false
|
|
323
329
|
part.CastShadow = false
|
|
324
330
|
part.CFrame = CFrame.new(position)
|
|
325
331
|
part.Color = color
|
|
@@ -358,7 +364,7 @@ end
|
|
|
358
364
|
]=]
|
|
359
365
|
function Draw.labelledPoint(position, label, color, parent)
|
|
360
366
|
if typeof(position) == "CFrame" then
|
|
361
|
-
position = position.
|
|
367
|
+
position = position.Position
|
|
362
368
|
end
|
|
363
369
|
|
|
364
370
|
local part = Draw.point(position, color, parent)
|
|
@@ -431,6 +437,8 @@ function Draw.box(cframe, size, color)
|
|
|
431
437
|
part.Name = "DebugPart"
|
|
432
438
|
part.Anchored = true
|
|
433
439
|
part.CanCollide = false
|
|
440
|
+
part.CanQuery = false
|
|
441
|
+
part.CanTouch = false
|
|
434
442
|
part.CastShadow = false
|
|
435
443
|
part.Archivable = false
|
|
436
444
|
part.BottomSurface = Enum.SurfaceType.Smooth
|