@quenty/draw 2.2.1 → 2.2.2
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 +2 -2
- package/src/Shared/Draw.lua +8 -0
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
|
+
## [2.2.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/draw@2.2.1...@quenty/draw@2.2.2) (2022-01-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Disable CanTouch and CanQuery ([#246](https://github.com/Quenty/NevermoreEngine/issues/246)) ([2f5d6e0](https://github.com/Quenty/NevermoreEngine/commit/2f5d6e006176ac4b5e15b29efe8f3b8b842a1a7b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/draw@2.2.0...@quenty/draw@2.2.1) (2021-12-30)
|
|
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": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
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": "e5be9e38e7fbbaed3296c3c83bd40f8745425ac3"
|
|
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
|
|
@@ -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
|
|
@@ -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
|