Skip to main content

SwingTwistUtils

Authored by Egomoose, modified by Quenty

Functions

swingTwist

SwingTwistUtils.swingTwist(
cfCFrame,
directionVector3
) → (
Vector3,--

swing

Vector3--

twist

)

Decomposes a CFrame into a swing and a twist.

twistAngle

SwingTwistUtils.twistAngle(
cfCFrame,
directionVector3
) → number
Show raw api
{
    "functions": [
        {
            "name": "swingTwist",
            "desc": "Decomposes a CFrame into a swing and a twist.",
            "params": [
                {
                    "name": "cf",
                    "desc": "",
                    "lua_type": "CFrame"
                },
                {
                    "name": "direction",
                    "desc": "",
                    "lua_type": "Vector3"
                }
            ],
            "returns": [
                {
                    "desc": "swing",
                    "lua_type": "Vector3"
                },
                {
                    "desc": "twist",
                    "lua_type": "Vector3"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 16,
                "path": "src/geometryutils/src/Shared/SwingTwistUtils.lua"
            }
        },
        {
            "name": "twistAngle",
            "desc": "",
            "params": [
                {
                    "name": "cf",
                    "desc": "",
                    "lua_type": "CFrame"
                },
                {
                    "name": "direction",
                    "desc": "",
                    "lua_type": "Vector3"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 36,
                "path": "src/geometryutils/src/Shared/SwingTwistUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "SwingTwistUtils",
    "desc": "Authored by Egomoose, modified by Quenty",
    "source": {
        "line": 6,
        "path": "src/geometryutils/src/Shared/SwingTwistUtils.lua"
    }
}