Skip to main content

RotatedCamera

Allow freedom of movement around a current place, much like the classic script works now. Not intended to be use with the current character script. This is the rotation component. Intended to be used with a SummedCamera, relative.

Properties

CameraState

This item is read only and cannot be modified. Read Only
RotatedCamera.CameraState: CameraState

The current state.

Functions

new

RotatedCamera.new() → RotatedCamera

Constructs a new RotatedCamera

RotateXY

RotatedCamera:RotateXY(
xzrotvectorVector2--

The delta rotation to apply

) → ()
Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Constructs a new RotatedCamera",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "RotatedCamera"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 28,
                "path": "src/camera/src/Client/Effects/RotatedCamera.lua"
            }
        },
        {
            "name": "RotateXY",
            "desc": "",
            "params": [
                {
                    "name": "xzrotvector",
                    "desc": "The delta rotation to apply",
                    "lua_type": "Vector2"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 41,
                "path": "src/camera/src/Client/Effects/RotatedCamera.lua"
            }
        }
    ],
    "properties": [
        {
            "name": "CameraState",
            "desc": "The current state.",
            "lua_type": "CameraState",
            "readonly": true,
            "source": {
                "line": 78,
                "path": "src/camera/src/Client/Effects/RotatedCamera.lua"
            }
        }
    ],
    "types": [],
    "name": "RotatedCamera",
    "desc": "Allow freedom of movement around a current place, much like the classic script works now.\nNot intended to be use with the current character script. This is the rotation component.\nIntended to be used with a SummedCamera, relative.",
    "source": {
        "line": 8,
        "path": "src/camera/src/Client/Effects/RotatedCamera.lua"
    }
}