Skip to main content

CameraTouchInputUtils

Utility methods involving touch input and cameras.

Functions

adjustTouchSensitivity

CameraTouchInputUtils.adjustTouchSensitivity(
currPitchAnglenumber,
sensitivityVector2,
deltaVector2
) → ()

Adjusts the camera Y touch Sensitivity when moving away from the center and in the TOUCH_SENSITIVTY_ADJUST_AREA Straight from Roblox's code

Return Vector2

Show raw api
{
    "functions": [
        {
            "name": "adjustTouchSensitivity",
            "desc": "Adjusts the camera Y touch Sensitivity when moving away from the center and in the TOUCH_SENSITIVTY_ADJUST_AREA\nStraight from Roblox's code\n\nReturn Vector2",
            "params": [
                {
                    "name": "currPitchAngle",
                    "desc": "",
                    "lua_type": "number"
                },
                {
                    "name": "sensitivity",
                    "desc": "",
                    "lua_type": "Vector2"
                },
                {
                    "name": "delta",
                    "desc": "",
                    "lua_type": "Vector2"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 28,
                "path": "src/camera/src/Client/Input/CameraTouchInputUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "CameraTouchInputUtils",
    "desc": "Utility methods involving touch input and cameras.",
    "source": {
        "line": 5,
        "path": "src/camera/src/Client/Input/CameraTouchInputUtils.lua"
    }
}