# Example 1 - Camera

![](https://1680659799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LauqCzuMnmk33t__Yp5%2F-MFjGWuxYdLHqA4Y3ajd%2F-MFjGh_KimZ9emw9mUAL%2FActionPack2screen3.png?alt=media\&token=2efcfd9c-6d5f-49f1-8d6e-d588dec75607)

For the Camera Example, we have created three Camera Motors, two follow and one fixxed, and swtich betwen them using onkeydown triggers for alpha 1, 2 and 3.&#x20;

We have aso added the OnScrollWheel trigger that comes with this pack, and executed the FOV follow and fixed Camera range. Here you can set a minimum and maximum FOV by using the Range slider in the Action.

The min/max range slider is a custom property draw and has also been included for thoes who wish to create theirown Actions.

The OnKeyDown triggers for Q and E will orbit the follow camera when it is active, and the OnKeyDown triggers for R and T will rotate the fixed camera when Action. The speed and direction can be set for both within the Action.

Within the OnStart Trigger, you will see that we have used both mirror and normal camera Actions. The Action "Add Mirror Camera to Object" will add a camera to the same object that will display the Image.&#x20;

![](https://1680659799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LauqCzuMnmk33t__Yp5%2F-MG2USaMEyGjjoyYbp3Z%2F-MG2XJZ_sc2vw3MQVfM_%2Fcam1.png?alt=media\&token=bdd9934b-daad-4764-a024-35c771c20117)

The settings for this are self explanitory but may need to be adjusted for your use of this camera.&#x20;

{% hint style="info" %}
To acheive an actual Mirror, you will need to invert the plane by selecting it with the Rect Tool and dragging it across itself to invert itself.
{% endhint %}

This example also has used the Action "Add Camera to Object" and added the camera to a cube, with the display on a plane elsewhere. This can be used to simulate a security camera, and can even be rotated by adding a rotate Action (Action Pack 1) to the cube.

![](https://1680659799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LauqCzuMnmk33t__Yp5%2F-MG2USaMEyGjjoyYbp3Z%2F-MG2YKQRYuc2eKhUXWlD%2Fcam2.png?alt=media\&token=e31b266a-3fe3-46de-b4ca-6f4914bf4b5d)

