PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

TiltUnits

This function ‘tilts’ the Camera by rotating it around the Camera/Focus around the Camera|Camera’s X axis by a given multiple of 10 degrees.

The rotation is applied to the Camera|Camera’s Camera/CFrame property and is constrained between -81.05 and 81.05 degrees.

This function tilts the Camera in 10 degree increments, for example:

workspace.CurrentCamera:TiltUnits(2) -- 20 degrees
workspace.CurrentCamera:TiltUnits(-5) -- -50 degrees

TiltUnits does not require the Camera/CameraType to be ’Scriptable’.

See also

  • Camera/PanUnits

Parameters

Name Type Default Description
int

The number of 10 degree units by which to to tilt the Camera

Returns

Return Type Summary

Whether the Camera tilt applied was constrained