Skip to main content

HumanoidMoveDirectionUtils

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.

Ever wanted to not rewrite all of Roblox's input systems! Well, now you can with this slight hack!

Functions

getRelativeMoveDirection

HumanoidMoveDirectionUtils.getRelativeMoveDirection(
cameraCFrameCFrame,
humanoidHumanoid
) → Vector3

Gets the relative move direction from the camera and the humanoid.

This is absolutely a hack.

Show raw api
{
    "functions": [
        {
            "name": "getRelativeMoveDirection",
            "desc": "Gets the relative move direction from the camera and the humanoid.\n\nThis is absolutely a hack.",
            "params": [
                {
                    "name": "cameraCFrame",
                    "desc": "",
                    "lua_type": "CFrame"
                },
                {
                    "name": "humanoid",
                    "desc": "",
                    "lua_type": "Humanoid"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Vector3"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 34,
                "path": "src/humanoidmovedirectionutils/src/Client/HumanoidMoveDirectionUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "HumanoidMoveDirectionUtils",
    "desc": "Gets the relative move direction from the camera and the humanoid allowing Roblox's input system to\nbe layered on top of a camera system.\n\nEver wanted to not rewrite all of Roblox's input systems! Well, now you can with this slight hack!",
    "source": {
        "line": 9,
        "path": "src/humanoidmovedirectionutils/src/Client/HumanoidMoveDirectionUtils.lua"
    }
}