Home > three-story-controls > CameraRig > do
Main method for controlling the camera
Signature:
do(action: CameraAction, amount: number, rigComponent?: RigComponent): void;
| Parameter | Type | Description |
|---|---|---|
| action | CameraAction | Action to perform |
| amount | number | Amount to move/rotate/etc |
| rigComponent | RigComponent | Override the default component to perform the action on |
Returns:
void