PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

PanUnits

This function pans the Camera around the Camera/Focus in 45 degree increments around the Y axis.

The rotation is applied to the Camera|Camera’s Camera/CFrame property.

This function pans the Camera in 45 degree increments, for example:

workspace.CurrentCamera:PanUnits(1) -- 45 degrees
workspace.CurrentCamera:PanUnits(-2) -- -90 degrees

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

Parameters

Name Type Default Description
int

The number of 45 degree increments by which to pan the Camera

Returns

Return Type Summary

No return