PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
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