Open 3D Engine AzFramework API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <CameraInput.h>
Public Member Functions | |
AZ::Transform | View () const |
View camera transform (V in model-view-projection matrix (MVP)). | |
AZ::Transform | Transform () const |
World camera transform. | |
AZ::Matrix3x3 | Rotation () const |
World rotation. | |
AZ::Vector3 | Translation () const |
World translation. | |
Public Attributes | |
AZ::Vector3 | m_pivot = AZ::Vector3::CreateZero() |
Pivot point to rotate about (modified in world space). | |
AZ::Vector3 | m_offset = AZ::Vector3::CreateZero() |
Offset relative to pivot (modified in camera space). | |
float | m_yaw = 0.0f |
Yaw rotation of camera (stored in radians) usually clamped to 0-360 degrees (0-2Pi radians). | |
float | m_pitch = 0.0f |
Pitch rotation of the camera (stored in radians) usually clamped to +/-90 degrees (-Pi/2 - Pi/2 radians). | |
A simple camera representation using spherical coordinates as input (pitch, yaw, pivot and offset). The camera's transform and view can be obtained through accessor functions that use the internal spherical coordinates to calculate the position and orientation.