@quenty/humanoidmovedirectionutils 10.9.0 → 10.9.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,17 @@
|
|
|
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.9.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoidmovedirectionutils@10.9.0...@quenty/humanoidmovedirectionutils@10.9.1) (2025-09-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* A few more cleanups ([#585](https://github.com/Quenty/NevermoreEngine/issues/585)) ([21fbb0d](https://github.com/Quenty/NevermoreEngine/commit/21fbb0d422ee0339366710ca682c8d4425368d52))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [10.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoidmovedirectionutils@10.8.4...@quenty/humanoidmovedirectionutils@10.9.0) (2025-05-10)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/humanoidmovedirectionutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/humanoidmovedirectionutils",
|
|
3
|
-
"version": "10.9.
|
|
3
|
+
"version": "10.9.1",
|
|
4
4
|
"description": "Gets the relative move direction from the camera and the humanoid allowing Roblox's input system to be layered on top of a camera system.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "697bad47e4b554e9f674e1aebefc65a99b84e41d"
|
|
35
35
|
}
|
|
@@ -31,7 +31,7 @@ local HumanoidMoveDirectionUtils = {}
|
|
|
31
31
|
@param humanoid Humanoid
|
|
32
32
|
@return Vector3
|
|
33
33
|
]=]
|
|
34
|
-
function HumanoidMoveDirectionUtils.getRelativeMoveDirection(cameraCFrame, humanoid)
|
|
34
|
+
function HumanoidMoveDirectionUtils.getRelativeMoveDirection(cameraCFrame: CFrame, humanoid: Humanoid): Vector3
|
|
35
35
|
if UserInputService:GetFocusedTextBox() then
|
|
36
36
|
return ZERO_VECTOR
|
|
37
37
|
end
|
|
@@ -39,7 +39,7 @@ function HumanoidMoveDirectionUtils.getRelativeMoveDirection(cameraCFrame, human
|
|
|
39
39
|
local moveDirection = humanoid.MoveDirection
|
|
40
40
|
local flatCameraCFrame = getRotationInXZPlane(cameraCFrame)
|
|
41
41
|
|
|
42
|
-
local relative = flatCameraCFrame:
|
|
42
|
+
local relative = flatCameraCFrame:VectorToObjectSpace(moveDirection)
|
|
43
43
|
|
|
44
44
|
-- Compensate for lack of camera movement in left/right arrow keys
|
|
45
45
|
local direction = ZERO_VECTOR
|