Skip to content

MoveCameraLookAt

march edited this page Jan 8, 2025 · 1 revision

Moves the camera to a different position using a target position.

Properties

Time:number

⠀⠀⠀⠀The time to start moving the camera.

Length:number (default 0.5)

⠀⠀⠀⠀The time it takes for the camera to move to its new position and angles.


Target:vector (default 0, 0, 0)

⠀⠀⠀⠀The aim target position. The camera will look at this position.

Distance:number (default 1500)

⠀⠀⠀⠀The distance the camera will be from the target position.

Angle:number (default 55)

⠀⠀⠀⠀The angle (rotated around the Z axis of the target position) for the camera.

Height:number (default 1000)

⠀⠀⠀⠀The height of the camera.

Easing:function (default math.ease.InOutQuad)

⠀⠀⠀⠀An easing function for these parameters that takes in a 0 - 1 number and returns a 0 - 1 number. Linear movement can be accomplished using a simple lambda: function(x) return x end

Clone this wiki locally