@quenty/racketingropeconstraint 12.19.0-canary.70d42ea.0 → 12.19.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,7 +3,18 @@
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
- # [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)
6
+ # [12.19.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/racketingropeconstraint@12.18.1...@quenty/racketingropeconstraint@12.19.0) (2025-02-18)
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)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/racketingropeconstraint
9
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/racketingropeconstraint",
3
- "version": "12.19.0-canary.70d42ea.0",
3
+ "version": "12.19.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.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"
30
+ "@quenty/baseobject": "^10.8.0",
31
+ "@quenty/binder": "^14.18.0",
32
+ "@quenty/loader": "^10.8.0",
33
+ "@quenty/overriddenproperty": "^10.9.0",
34
+ "@quenty/promise": "^10.10.0",
35
+ "@quenty/tie": "^10.19.0",
36
+ "@quenty/valueobject": "^13.16.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "70d42eaa8c916e90ed1eb86aa3861c2fc847682e"
41
+ "gitHead": "184a407d8d7366c39009444c3c9a7023cb176471"
42
42
  }
@@ -93,6 +93,7 @@ function RacketingRopeConstraint:_handleActiveChanged()
93
93
 
94
94
  self:_update()
95
95
  else
96
+ self._isConstrained.Value = false
96
97
  self._maid._updateHeartbeat = nil
97
98
  self._maid._pendingConstrainedPromise = nil
98
99
  self._smallestDistance = START_DISTANCE
@@ -101,7 +102,7 @@ function RacketingRopeConstraint:_handleActiveChanged()
101
102
  end
102
103
 
103
104
  function RacketingRopeConstraint:_update()
104
- assert(self:_isValid())
105
+ assert(self:_isValid(), "Not valid state")
105
106
 
106
107
  local currentDistance = (self._obj.Attachment0.WorldPosition - self._obj.Attachment1.WorldPosition).magnitude
107
108
  self._smallestDistance = math.clamp(currentDistance, self._targetDistance, self._smallestDistance)
@@ -110,15 +111,17 @@ function RacketingRopeConstraint:_update()
110
111
 
111
112
  if self:_queryIsConstrained() then
112
113
  self._maid._updateHeartbeat = nil
114
+ self._isConstrained.Value = true
113
115
 
114
116
  if self._maid._pendingConstrainedPromise then
115
117
  if self:_isValid() and self:_queryIsConstrained() then
116
- self._isConstrained.Value = true
117
118
  self._maid._pendingConstrainedPromise:Resolve()
118
119
  end
119
120
 
120
121
  self._maid._pendingConstrainedPromise = nil
121
122
  end
123
+ else
124
+ self._isConstrained.Value = false
122
125
  end
123
126
  end
124
127