@quenty/ik 15.24.2 → 15.24.3
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 +8 -0
- package/package.json +26 -26
- package/src/Shared/IKUtils.lua +5 -3
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
|
+
## [15.24.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/ik@15.24.2...@quenty/ik@15.24.3) (2025-04-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/ik
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [15.24.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/ik@15.24.0...@quenty/ik@15.24.2) (2025-04-07)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/ik",
|
|
3
|
-
"version": "15.24.
|
|
3
|
+
"version": "15.24.3",
|
|
4
4
|
"description": "Inverse Kinematics for characters on Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,36 +26,36 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/acceltween": "^2.5.
|
|
30
|
-
"@quenty/baseobject": "^10.8.
|
|
31
|
-
"@quenty/binder": "^14.19.
|
|
32
|
-
"@quenty/brio": "^14.17.
|
|
33
|
-
"@quenty/camera": "^14.20.
|
|
34
|
-
"@quenty/characterutils": "^12.18.
|
|
35
|
-
"@quenty/humanoidtracker": "^13.17.
|
|
36
|
-
"@quenty/instanceutils": "^13.17.
|
|
37
|
-
"@quenty/loader": "^10.8.
|
|
38
|
-
"@quenty/maid": "^3.4.
|
|
29
|
+
"@quenty/acceltween": "^2.5.3",
|
|
30
|
+
"@quenty/baseobject": "^10.8.3",
|
|
31
|
+
"@quenty/binder": "^14.19.3",
|
|
32
|
+
"@quenty/brio": "^14.17.3",
|
|
33
|
+
"@quenty/camera": "^14.20.3",
|
|
34
|
+
"@quenty/characterutils": "^12.18.3",
|
|
35
|
+
"@quenty/humanoidtracker": "^13.17.3",
|
|
36
|
+
"@quenty/instanceutils": "^13.17.3",
|
|
37
|
+
"@quenty/loader": "^10.8.3",
|
|
38
|
+
"@quenty/maid": "^3.4.3",
|
|
39
39
|
"@quenty/math": "^2.7.3",
|
|
40
|
-
"@quenty/motor6d": "^7.20.
|
|
41
|
-
"@quenty/optional": "^11.8.
|
|
42
|
-
"@quenty/promise": "^10.10.
|
|
43
|
-
"@quenty/qframe": "^10.10.
|
|
44
|
-
"@quenty/r15utils": "^13.17.
|
|
45
|
-
"@quenty/ragdoll": "^15.23.
|
|
46
|
-
"@quenty/remoting": "^12.18.
|
|
47
|
-
"@quenty/rx": "^13.17.
|
|
48
|
-
"@quenty/servicebag": "^11.11.
|
|
49
|
-
"@quenty/signal": "^7.10.
|
|
50
|
-
"@quenty/table": "^3.7.
|
|
51
|
-
"@quenty/tie": "^10.20.
|
|
52
|
-
"@quenty/valueobject": "^13.17.
|
|
40
|
+
"@quenty/motor6d": "^7.20.3",
|
|
41
|
+
"@quenty/optional": "^11.8.3",
|
|
42
|
+
"@quenty/promise": "^10.10.4",
|
|
43
|
+
"@quenty/qframe": "^10.10.4",
|
|
44
|
+
"@quenty/r15utils": "^13.17.3",
|
|
45
|
+
"@quenty/ragdoll": "^15.23.3",
|
|
46
|
+
"@quenty/remoting": "^12.18.3",
|
|
47
|
+
"@quenty/rx": "^13.17.3",
|
|
48
|
+
"@quenty/servicebag": "^11.11.4",
|
|
49
|
+
"@quenty/signal": "^7.10.3",
|
|
50
|
+
"@quenty/table": "^3.7.4",
|
|
51
|
+
"@quenty/tie": "^10.20.3",
|
|
52
|
+
"@quenty/valueobject": "^13.17.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@quenty/rigbuilderutils": "^10.19.
|
|
55
|
+
"@quenty/rigbuilderutils": "^10.19.3"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "b06c070ae91d5dab7bd8de6e290ad2caabb15d8f"
|
|
61
61
|
}
|
package/src/Shared/IKUtils.lua
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
2
3
|
Utilties for IK system
|
|
3
4
|
@class IKUtils
|
|
@@ -5,8 +6,9 @@
|
|
|
5
6
|
|
|
6
7
|
local IKUtils = {}
|
|
7
8
|
|
|
8
|
-
function IKUtils.getDampenedAngleClamp(maxAngle, dampenAreaAngle, dampenAreaFactor)
|
|
9
|
-
|
|
9
|
+
function IKUtils.getDampenedAngleClamp(maxAngle: number, dampenAreaAngle: number, dampenAreaFactor: number?): (number) -> number
|
|
10
|
+
local areaFactor = dampenAreaFactor or dampenAreaAngle
|
|
11
|
+
|
|
10
12
|
return function(angle)
|
|
11
13
|
local min = maxAngle - dampenAreaAngle
|
|
12
14
|
if math.abs(angle) <= min then
|
|
@@ -14,7 +16,7 @@ function IKUtils.getDampenedAngleClamp(maxAngle, dampenAreaAngle, dampenAreaFact
|
|
|
14
16
|
else
|
|
15
17
|
-- dampenAreaFactor is the area that the bouncing happens
|
|
16
18
|
-- dampenAreaAngle is the amount of bounce that occurs
|
|
17
|
-
local timesOver = (math.abs(angle) - min) /
|
|
19
|
+
local timesOver = (math.abs(angle) - min) / areaFactor
|
|
18
20
|
local scale = (1 - 0.5^timesOver)
|
|
19
21
|
|
|
20
22
|
return math.sign(angle) * (min + (scale*dampenAreaAngle))
|