@quenty/nocollisionconstraintutils 10.8.0 → 10.8.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
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.8.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/nocollisionconstraintutils@10.8.0...@quenty/nocollisionconstraintutils@10.8.1) (2025-03-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/nocollisionconstraintutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [10.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/nocollisionconstraintutils@10.7.1...@quenty/nocollisionconstraintutils@10.8.0) (2025-02-18)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/nocollisionconstraintutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/nocollisionconstraintutils",
|
|
3
|
-
"version": "10.8.
|
|
3
|
+
"version": "10.8.1",
|
|
4
4
|
"description": "Utility functions to create and manipulate NoCollisionConstraints between Roblox objects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "6b7c3e15e60cdb185986207b574e2b5591261e7a"
|
|
36
36
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
2
3
|
Utility functions to create and manipulate [NoCollisionConstraint] objects between Roblox parts.
|
|
3
4
|
|
|
@@ -21,7 +22,7 @@ local NoCollisionConstraintUtils = {}
|
|
|
21
22
|
@param parent Instance?
|
|
22
23
|
@return NoCollisionConstraint
|
|
23
24
|
]=]
|
|
24
|
-
function NoCollisionConstraintUtils.create(part0, part1, parent)
|
|
25
|
+
function NoCollisionConstraintUtils.create(part0: BasePart, part1: BasePart, parent: Instance?): NoCollisionConstraint
|
|
25
26
|
local noCollision = Instance.new("NoCollisionConstraint")
|
|
26
27
|
noCollision.Part0 = part0
|
|
27
28
|
noCollision.Part1 = part1
|
|
@@ -39,7 +40,7 @@ end
|
|
|
39
40
|
@param parent Instance | boolean | nil
|
|
40
41
|
@return Maid
|
|
41
42
|
]=]
|
|
42
|
-
function NoCollisionConstraintUtils.tempNoCollision(parts0, parts1, parent)
|
|
43
|
+
function NoCollisionConstraintUtils.tempNoCollision(parts0: { BasePart }, parts1: { BasePart }, parent: Instance?)
|
|
43
44
|
assert(typeof(parent) == "Instance" or type(parent) == "boolean" or type(parent) == "nil", "Bad parent")
|
|
44
45
|
|
|
45
46
|
local maid = Maid.new()
|
|
@@ -59,7 +60,11 @@ end
|
|
|
59
60
|
@param parent Instance | boolean | nil
|
|
60
61
|
@return { NoCollisionConstraint }
|
|
61
62
|
]=]
|
|
62
|
-
function NoCollisionConstraintUtils.createBetweenPartsLists(
|
|
63
|
+
function NoCollisionConstraintUtils.createBetweenPartsLists(
|
|
64
|
+
parts0: { BasePart },
|
|
65
|
+
parts1: { BasePart },
|
|
66
|
+
parent: Instance | boolean | nil
|
|
67
|
+
): { NoCollisionConstraint }
|
|
63
68
|
assert(type(parts0) == "table", "Bad parts0")
|
|
64
69
|
assert(type(parts1) == "table", "Bad parts1")
|
|
65
70
|
assert(typeof(parent) == "Instance" or type(parent) == "boolean" or type(parent) == "nil", "Bad parent")
|
|
@@ -95,8 +100,16 @@ end
|
|
|
95
100
|
@param parent Instance | boolean | nil
|
|
96
101
|
@return { NoCollisionConstraint }
|
|
97
102
|
]=]
|
|
98
|
-
function NoCollisionConstraintUtils.createBetweenMechanisms(
|
|
99
|
-
|
|
103
|
+
function NoCollisionConstraintUtils.createBetweenMechanisms(
|
|
104
|
+
adornee0: BasePart,
|
|
105
|
+
adornee1: BasePart,
|
|
106
|
+
parent: Instance?
|
|
107
|
+
): { NoCollisionConstraint }
|
|
108
|
+
return NoCollisionConstraintUtils.createBetweenPartsLists(
|
|
109
|
+
getMechanismParts(adornee0),
|
|
110
|
+
getMechanismParts(adornee1),
|
|
111
|
+
parent
|
|
112
|
+
)
|
|
100
113
|
end
|
|
101
114
|
|
|
102
|
-
return NoCollisionConstraintUtils
|
|
115
|
+
return NoCollisionConstraintUtils
|