@quenty/ik 9.24.0 → 9.25.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,6 +3,22 @@
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
+ # [9.25.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/ik@9.24.0...@quenty/ik@9.25.0) (2023-05-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Fix dependencies ([67791a2](https://github.com/Quenty/NevermoreEngine/commit/67791a289c0956bf4947ac81bf792ee56496b3e8))
12
+
13
+
14
+ ### Features
15
+
16
+ * Initial refactor of guis to use ValueObject instead of ValueObject ([723aba0](https://github.com/Quenty/NevermoreEngine/commit/723aba0208cae7e06c9d8bf2d8f0092d042d70ea))
17
+
18
+
19
+
20
+
21
+
6
22
  # [9.24.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/ik@9.23.0...@quenty/ik@9.24.0) (2023-05-08)
7
23
 
8
24
  **Note:** Version bump only for package @quenty/ik
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/ik",
3
- "version": "9.24.0",
3
+ "version": "9.25.0",
4
4
  "description": "Inverse Kinematics for characters on Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -28,32 +28,33 @@
28
28
  "dependencies": {
29
29
  "@quenty/acceltween": "^2.2.1",
30
30
  "@quenty/baseobject": "^6.2.1",
31
- "@quenty/binder": "^8.15.0",
32
- "@quenty/brio": "^8.12.0",
33
- "@quenty/camera": "^9.12.0",
34
- "@quenty/characterutils": "^6.6.0",
35
- "@quenty/humanoidtracker": "^7.13.0",
36
- "@quenty/instanceutils": "^7.13.0",
31
+ "@quenty/binder": "^8.16.0",
32
+ "@quenty/brio": "^8.13.0",
33
+ "@quenty/camera": "^9.13.0",
34
+ "@quenty/characterutils": "^6.7.0",
35
+ "@quenty/humanoidtracker": "^7.14.0",
36
+ "@quenty/instanceutils": "^7.14.0",
37
37
  "@quenty/loader": "^6.2.1",
38
38
  "@quenty/maid": "^2.5.0",
39
39
  "@quenty/math": "^2.3.0",
40
- "@quenty/motor6d": "^1.21.0",
40
+ "@quenty/motor6d": "^1.22.0",
41
41
  "@quenty/optional": "^7.2.1",
42
42
  "@quenty/promise": "^6.5.0",
43
- "@quenty/qframe": "^6.6.0",
44
- "@quenty/r15utils": "^7.14.0",
45
- "@quenty/ragdoll": "^9.23.0",
43
+ "@quenty/qframe": "^6.7.0",
44
+ "@quenty/r15utils": "^7.15.0",
45
+ "@quenty/ragdoll": "^9.24.0",
46
46
  "@quenty/remoting": "^6.5.0",
47
- "@quenty/rx": "^7.10.0",
48
- "@quenty/servicebag": "^6.6.1",
49
- "@quenty/signal": "^2.3.0",
50
- "@quenty/table": "^3.2.0"
47
+ "@quenty/rx": "^7.11.0",
48
+ "@quenty/servicebag": "^6.7.0",
49
+ "@quenty/signal": "^2.4.0",
50
+ "@quenty/table": "^3.2.0",
51
+ "@quenty/valueobject": "^7.14.0"
51
52
  },
52
53
  "devDependencies": {
53
- "@quenty/rigbuilderutils": "^6.7.0"
54
+ "@quenty/rigbuilderutils": "^6.8.0"
54
55
  },
55
56
  "publishConfig": {
56
57
  "access": "public"
57
58
  },
58
- "gitHead": "2ad8cea7dd3ad79a39afd7d7b785b489b90553fd"
59
+ "gitHead": "11058e90e51ea83d3dad6ae9abe59cc19c36b94b"
59
60
  }
@@ -100,7 +100,7 @@ end
100
100
  local IKAimPositionPriorites = require("IKAimPositionPriorites")
101
101
 
102
102
  RunService.Stepped:Connect(function()
103
- serviceBag:GetService(IKServiceClient):SetAimPosition(Vector3.new(0, 0, 0), IKAimPositionPriorites.HIGH)
103
+ serviceBag:GetService(IKServiceClient):SetAimPosition(Vector3.zero, IKAimPositionPriorites.HIGH)
104
104
  end)
105
105
  ```
106
106
 
@@ -117,7 +117,7 @@ end
117
117
  local IKService = require("IKService")
118
118
 
119
119
  -- Make the NPC look at a target
120
- serviceBag:GetService(IKService):UpdateServerRigTarget(workspace.NPC.Humanoid, Vector3.new(0, 0, 0))
120
+ serviceBag:GetService(IKService):UpdateServerRigTarget(workspace.NPC.Humanoid, Vector3.zero)
121
121
  ```
122
122
 
123
123
  @param humanoid Humanoid
@@ -20,6 +20,7 @@ local Rx = require("Rx")
20
20
  local RxBrioUtils = require("RxBrioUtils")
21
21
  local RxInstanceUtils = require("RxInstanceUtils")
22
22
  local RxR15Utils = require("RxR15Utils")
23
+ local ValueObject = require("ValueObject")
23
24
 
24
25
  local CFA_90X = CFrame.Angles(math.pi/2, 0, 0)
25
26
  local USE_OLD_IK_SYSTEM = (not LimbIKUtils) or false
@@ -45,8 +46,7 @@ function ArmIKBase.new(humanoid, armName)
45
46
  error(("[ArmIKBase] - Bad armName %q"):format(tostring(armName)))
46
47
  end
47
48
 
48
- self._gripping = Instance.new("BoolValue")
49
- self._gripping.Value = false
49
+ self._gripping = ValueObject.new(false, "boolean")
50
50
  self._maid:GiveTask(self._gripping)
51
51
 
52
52
  self._maid:GiveTask(self:_observeCharacterBrio():Subscribe(function(brio)
@@ -57,7 +57,7 @@ function ArmIKBase.new(humanoid, armName)
57
57
  local maid = brio:ToMaid()
58
58
  local character = brio:GetValue()
59
59
 
60
- maid:GiveTask(RxInstanceUtils.observeProperty(self._gripping, "Value"):Subscribe(function(isGripping)
60
+ maid:GiveTask(self._gripping:Observe():Subscribe(function(isGripping)
61
61
  if isGripping then
62
62
  maid._gripping = self:_startUpdateLoop(character)
63
63
  else
@@ -347,7 +347,7 @@ if USE_OLD_IK_SYSTEM then
347
347
  local shoulderXAngle = self._shoulderXAngle
348
348
  local elbowXAngle = self._elbowXAngle
349
349
 
350
- local yrot = CFrame.new(Vector3.new(), self._offset)
350
+ local yrot = CFrame.new(Vector3.zero, self._offset)
351
351
 
352
352
  self._shoulderTransform = (yrot * CFA_90X * CFrame.Angles(shoulderXAngle, 0, 0)) --:inverse()
353
353
  self._elbowTransform = CFrame.Angles(elbowXAngle, 0, 0)
@@ -29,6 +29,6 @@ RigBuilderUtils.promiseR15MeshRig()
29
29
 
30
30
  -- look at origin
31
31
  RunService.Stepped:Connect(function()
32
- ikService:UpdateServerRigTarget(humanoid, Vector3.new(0, 0, 0))
32
+ ikService:UpdateServerRigTarget(humanoid, Vector3.zero)
33
33
  end)
34
34
  end)