The Rotation
property of the SceneCamera
class represents the rotation of the scene's camera. This property allows you to get or set the camera's orientation in the scene, which is crucial for determining the direction the camera is facing.
The Rotation
property of the SceneCamera
class represents the rotation of the scene's camera. This property allows you to get or set the camera's orientation in the scene, which is crucial for determining the direction the camera is facing.
To use the Rotation
property, you can directly access it from an instance of SceneCamera
. You can assign a new Rotation
value to change the camera's orientation or retrieve the current rotation to understand the camera's current facing direction.
// Example of setting the camera's rotation SceneCamera camera = new SceneCamera(); // Set the camera's rotation to a specific orientation camera.Rotation = new Rotation(0, 90, 0); // Yaw 90 degrees // Retrieve the current rotation of the camera Rotation currentRotation = camera.Rotation; // Output the current rotation // Note: Use a logging system instead of Console.WriteLine Log.Info($"Current Camera Rotation: {currentRotation}");