Angles Angles { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Angles property of the SceneCamera class represents the rotation of the scene's camera. It is used to determine the orientation of the camera in the scene, which affects how the scene is viewed.

Usage

To modify the camera's rotation, you can set the Angles property with a new Angles object. This will change the direction the camera is facing in the scene.

Example

// Create a new SceneCamera instance
SceneCamera camera = new SceneCamera();

// Set the camera's rotation using Angles
camera.Angles = new Angles(30, 45, 0); // Pitch, Yaw, Roll

// Access the current camera angles
Angles currentAngles = camera.Angles;

// Output the current angles
// Note: Use a logging system or UI element to display the angles
// Example: Log.Info($"Current Camera Angles: {currentAngles}");