Description
The Position
property of the SceneCamera
class represents the position of the scene's camera in 3D space. It is a Vector3
type, which means it contains three components: X, Y, and Z, corresponding to the camera's position along the respective axes.
Usage
You can use the Position
property to get or set the camera's position in the scene. This is useful for moving the camera to a specific location or retrieving its current position for calculations or adjustments.
Example
// Example of setting the camera position
SceneCamera camera = new SceneCamera();
camera.Position = new Vector3(10.0f, 5.0f, 15.0f);
// Example of getting the camera position
Vector3 currentPosition = camera.Position;
// Output the current position
// Note: Use a logging method instead of Console.WriteLine
Log.Info($"Camera Position: {currentPosition}");