@quenty/racketingropeconstraint 12.18.2-canary.534.c6c59e8.0 → 12.19.0-canary.70d42ea.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,18 +3,7 @@
|
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
### Bug Fixes
|
|
10
|
-
|
|
11
|
-
* Rx works without promise ([267f976](https://github.com/Quenty/NevermoreEngine/commit/267f976d3be3e5fa407416d96d16d3afc021e25d))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## [12.18.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/racketingropeconstraint@12.18.0...@quenty/racketingropeconstraint@12.18.1) (2025-01-22)
|
|
6
|
+
# [12.19.0-canary.70d42ea.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/racketingropeconstraint@12.18.0...@quenty/racketingropeconstraint@12.19.0-canary.70d42ea.0) (2025-01-24)
|
|
18
7
|
|
|
19
8
|
**Note:** Version bump only for package @quenty/racketingropeconstraint
|
|
20
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/racketingropeconstraint",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.19.0-canary.70d42ea.0",
|
|
4
4
|
"description": "Tries to racket a rope constraint back down to a reasonable length",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"Quenty"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@quenty/baseobject": "10.7.
|
|
31
|
-
"@quenty/binder": "14.17.
|
|
32
|
-
"@quenty/loader": "10.7.
|
|
33
|
-
"@quenty/overriddenproperty": "10.
|
|
34
|
-
"@quenty/promise": "10.9.
|
|
35
|
-
"@quenty/tie": "10.
|
|
36
|
-
"@quenty/valueobject": "13.15.
|
|
30
|
+
"@quenty/baseobject": "10.7.1",
|
|
31
|
+
"@quenty/binder": "14.17.0",
|
|
32
|
+
"@quenty/loader": "10.7.1",
|
|
33
|
+
"@quenty/overriddenproperty": "10.9.0-canary.70d42ea.0",
|
|
34
|
+
"@quenty/promise": "10.9.0",
|
|
35
|
+
"@quenty/tie": "10.19.0-canary.70d42ea.0",
|
|
36
|
+
"@quenty/valueobject": "13.15.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "70d42eaa8c916e90ed1eb86aa3861c2fc847682e"
|
|
42
42
|
}
|
|
@@ -93,7 +93,6 @@ function RacketingRopeConstraint:_handleActiveChanged()
|
|
|
93
93
|
|
|
94
94
|
self:_update()
|
|
95
95
|
else
|
|
96
|
-
self._isConstrained.Value = false
|
|
97
96
|
self._maid._updateHeartbeat = nil
|
|
98
97
|
self._maid._pendingConstrainedPromise = nil
|
|
99
98
|
self._smallestDistance = START_DISTANCE
|
|
@@ -102,7 +101,7 @@ function RacketingRopeConstraint:_handleActiveChanged()
|
|
|
102
101
|
end
|
|
103
102
|
|
|
104
103
|
function RacketingRopeConstraint:_update()
|
|
105
|
-
assert(self:_isValid()
|
|
104
|
+
assert(self:_isValid())
|
|
106
105
|
|
|
107
106
|
local currentDistance = (self._obj.Attachment0.WorldPosition - self._obj.Attachment1.WorldPosition).magnitude
|
|
108
107
|
self._smallestDistance = math.clamp(currentDistance, self._targetDistance, self._smallestDistance)
|
|
@@ -111,17 +110,15 @@ function RacketingRopeConstraint:_update()
|
|
|
111
110
|
|
|
112
111
|
if self:_queryIsConstrained() then
|
|
113
112
|
self._maid._updateHeartbeat = nil
|
|
114
|
-
self._isConstrained.Value = true
|
|
115
113
|
|
|
116
114
|
if self._maid._pendingConstrainedPromise then
|
|
117
115
|
if self:_isValid() and self:_queryIsConstrained() then
|
|
116
|
+
self._isConstrained.Value = true
|
|
118
117
|
self._maid._pendingConstrainedPromise:Resolve()
|
|
119
118
|
end
|
|
120
119
|
|
|
121
120
|
self._maid._pendingConstrainedPromise = nil
|
|
122
121
|
end
|
|
123
|
-
else
|
|
124
|
-
self._isConstrained.Value = false
|
|
125
122
|
end
|
|
126
123
|
end
|
|
127
124
|
|