Represents a command to set the camera configuration.
This class sends a message to the Metabox API to set the camera on a scene.
Important: No need to listen to any events to see changes.
What does it unlock?
Sets camera presets with restriction parameters (FOV, rotation, position).
Practical Application
Sets camera with precise control: fov (degrees), mode ('orbit'|'fps'), position ({x,y,z}),
rotation ({horizontal,vertical}), and restrictions (min/max distance, FOV, rotation bounds).
Use for guided tours, preset view buttons, or restricting camera to prevent users seeing behind the product.
AI Coding Best Practices
Only include fields you want to change — omitted values keep current settings. Use orbit mode for typical product viewing,
fps for walkthrough/room scenes. Apply restrictions to prevent bad angles. Full interface:
{fov?, mode?, position?, rotation?, restrictions?}.
Represents a command to set the camera configuration. This class sends a message to the Metabox API to set the camera on a scene. Important: No need to listen to any events to see changes.
What does it unlock?
Sets camera presets with restriction parameters (FOV, rotation, position).
Practical Application
Sets camera with precise control: fov (degrees), mode ('orbit'|'fps'), position ({x,y,z}), rotation ({horizontal,vertical}), and restrictions (min/max distance, FOV, rotation bounds). Use for guided tours, preset view buttons, or restricting camera to prevent users seeing behind the product.
AI Coding Best Practices
Only include fields you want to change — omitted values keep current settings. Use orbit mode for typical product viewing, fps for walkthrough/room scenes. Apply restrictions to prevent bad angles. Full interface:
{fov?, mode?, position?, rotation?, restrictions?}.Example
Param: camera
The camera configuration.