Skip to main content

ImpulseCamera

Add another layer of effects over any other camera by allowing an "impulse" to be applied. Good for shockwaves, camera shake, and recoil.

Properties

CameraState

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

The current state.

Functions

Impulse

ImpulseCamera:Impulse(
velocityVector3,
speednumber,--

Optional

dampernumber--

Optional

) → ()

Applies an impulse to the camera, shaking it!

ImpulseRandom

ImpulseCamera:ImpulseRandom(
velocityVector3,
speednumber,--

Optional

dampernumber--

Optional

) → ()

Applies a random impulse

Show raw api
{
    "functions": [
        {
            "name": "Impulse",
            "desc": "Applies an impulse to the camera, shaking it!",
            "params": [
                {
                    "name": "velocity",
                    "desc": "",
                    "lua_type": "Vector3"
                },
                {
                    "name": "speed",
                    "desc": "Optional",
                    "lua_type": "number"
                },
                {
                    "name": "damper",
                    "desc": "Optional",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 38,
                "path": "src/camera/src/Client/Effects/ImpulseCamera.lua"
            }
        },
        {
            "name": "ImpulseRandom",
            "desc": "Applies a random impulse",
            "params": [
                {
                    "name": "velocity",
                    "desc": "",
                    "lua_type": "Vector3"
                },
                {
                    "name": "speed",
                    "desc": "Optional",
                    "lua_type": "number"
                },
                {
                    "name": "damper",
                    "desc": "Optional",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 54,
                "path": "src/camera/src/Client/Effects/ImpulseCamera.lua"
            }
        }
    ],
    "properties": [
        {
            "name": "CameraState",
            "desc": "The current state.",
            "lua_type": "CameraState",
            "readonly": true,
            "source": {
                "line": 133,
                "path": "src/camera/src/Client/Effects/ImpulseCamera.lua"
            }
        }
    ],
    "types": [],
    "name": "ImpulseCamera",
    "desc": "Add another layer of effects over any other camera by allowing an \"impulse\"\nto be applied. Good for shockwaves, camera shake, and recoil.",
    "source": {
        "line": 7,
        "path": "src/camera/src/Client/Effects/ImpulseCamera.lua"
    }
}