Camera basics

ForgeJS is built on top of three.js 3D engine, that means that all object are in a 3D scene and at the center of the scene you have the camera that is the user point of view. You can customize the camera object in the json configuration of your project.

Global configuration

At the root of your json configuration you can define a global camera object that will set the camera options for every scenes of your story.

The yaw, pitch, roll and fov options are objects that defines the default value, the minimum and maximum values.
The default values will be used as default for the camera rotation and field of view for each scene load complete.
By specifying these min and max option, you can limit the camera movement to a part of your scene and limit the field of view (fov).

Scene configuration

If you want to give a different configuration on your scenes than the global one, you can add a camera object to your scene object to override the global camera configuration like this: