Angles Angles { get; set; }

robot_2Generated
code_blocksInput

Description

The Angles property of the SceneCamera class represents the rotation of the scene's camera. It is used to define the orientation of the camera in the scene, allowing you to control which direction the camera is facing.

Usage

To use the Angles property, you can get or set the camera's rotation in terms of angles. This is useful for adjusting the camera's view direction programmatically.

Example

// Example of setting the camera's angles
SceneCamera camera = new SceneCamera();
camera.Angles = new Angles(30, 45, 0); // Set the camera to look 30 degrees up and 45 degrees to the right

// Example of getting the camera's angles
Angles currentAngles = camera.Angles;
Console.WriteLine($"Camera Angles: Pitch = {currentAngles.pitch}, Yaw = {currentAngles.yaw}, Roll = {currentAngles.roll}");