27 setLens(
float fovYRadians,
float aspectRatio,
float nearPlane,
float farPlane);
131 v.r[3] = XMVectorSet(0, 0, 0, 1);
153 XMStoreFloat3(&t, v);
Declara la API de Prerequisites dentro del subsistema Core.
Declara la API de Vector3 dentro del subsistema Math.
XMMATRIX getView() const
Matriz View (mundo->vista).
bool m_viewDirty
Flag indicating whether the view matrix needs to be recalculated.
void pitch(float radians)
Rotación sobre el eje Right local (pitch).
float m_fovY
The field of view (FOV) angle in radians.
float m_farPlane
The distance to the far clipping plane.
EU::Vector3 m_forward
The forward vector of the camera's orthonormal basis.
EU::Vector3 getPosition() const
Obtiene la posición en mundo.
XMMATRIX getProj() const
Matriz Projection (vista->clip).
EU::Vector3 FromXM(FXMVECTOR v)
void setPosition(float x, float y, float z)
Define posición en mundo.
EU::Vector3 m_up
The up vector of the camera's orthonormal basis.
void strafe(float d)
Movimiento relativo a la cámara (izquierda/derecha).
float getFovY() const
Devuelve parámetros de proyección (útil para UI/debug).
float m_nearPlane
The distance to the near clipping plane.
void lookAt(const EU::Vector3 &pos, const EU::Vector3 &target, const EU::Vector3 &up=EU::Vector3(0, 1, 0))
Fuerza la cámara a mirar a un objetivo (LH).
EU::Vector3 GetForward() const
void updateViewMatrix()
Recalcula la matriz View si es necesario.
float m_aspectRatio
The aspect ratio of the camera's view (width divided by height).
EU::Vector3 m_position
The position of the camera in world space.
EU::Vector3 GetUp() const
void yaw(float radians)
Rotación sobre el eje Y global (yaw).
void walk(float d)
Movimiento relativo a la cámara (adelante/atrás).
XMMATRIX GetViewNoTranslation() const
View sin traslación (solo rotación).
EU::Vector3 & getPosition()
EU::Vector3 GetRight() const
Vectores base (mundo) de la cámara.
void setLens(float fovYRadians, float aspectRatio, float nearPlane, float farPlane)
Configura la proyección en perspectiva (LH).
EU::Vector3 m_right
The right vector of the camera's orthonormal basis.