#include <OrbitalChaseBehavior.hpp>
◆ OrbitalChaseBehavior()
◆ ~OrbitalChaseBehavior()
| CameraMovement::Utils::OrbitalChaseBehavior::~OrbitalChaseBehavior |
( |
| ) |
|
|
inlineoverride |
◆ GetMaxDistance()
| float CameraMovement::Utils::OrbitalChaseBehavior::GetMaxDistance |
( |
| ) |
const |
|
inline |
◆ GetMinDistance()
| float CameraMovement::Utils::OrbitalChaseBehavior::GetMinDistance |
( |
| ) |
const |
|
inline |
◆ GetScrollSensitivity()
| float CameraMovement::Utils::OrbitalChaseBehavior::GetScrollSensitivity |
( |
| ) |
const |
|
inline |
◆ GetTarget()
| Engine::Entity CameraMovement::Utils::OrbitalChaseBehavior::GetTarget |
( |
| ) |
const |
|
inline |
◆ HandleCursorPos()
| void CameraMovement::Utils::OrbitalChaseBehavior::HandleCursorPos |
( |
Engine::Core & | core, |
|
|
float | xpos, |
|
|
float | ypos ) |
|
inlineprivate |
◆ HandleMouseButton()
| void CameraMovement::Utils::OrbitalChaseBehavior::HandleMouseButton |
( |
Engine::Core & | , |
|
|
int | button, |
|
|
int | action, |
|
|
int | ) |
|
inlineprivate |
◆ HandleScroll()
| void CameraMovement::Utils::OrbitalChaseBehavior::HandleScroll |
( |
Engine::Core & | , |
|
|
double | , |
|
|
double | yoffset ) |
|
inlineprivate |
◆ SetMaxDistance()
| void CameraMovement::Utils::OrbitalChaseBehavior::SetMaxDistance |
( |
float | newMaxDistance | ) |
|
|
inline |
◆ SetMinDistance()
| void CameraMovement::Utils::OrbitalChaseBehavior::SetMinDistance |
( |
float | newMinDistance | ) |
|
|
inline |
◆ SetScrollSensitivity()
| void CameraMovement::Utils::OrbitalChaseBehavior::SetScrollSensitivity |
( |
float | newScrollSensitivity | ) |
|
|
inline |
◆ SetTarget()
| void CameraMovement::Utils::OrbitalChaseBehavior::SetTarget |
( |
Engine::Entity | newTarget | ) |
|
|
inline |
◆ Update()
Update the camera behavior.
- Parameters
-
| core | The engine core. |
| manager | The camera manager. |
| transform | The transform component of the camera. |
| camera | The camera component. |
| deltaTime | The time elapsed since the last frame. |
Implements CameraMovement::Utils::ICameraBehavior.
◆ UpdatePosition()
◆ UpdateRotation()
◆ _core
| Engine::Core* CameraMovement::Utils::OrbitalChaseBehavior::_core |
|
private |
◆ _cursorPosCallbackId
◆ _distance
| float CameraMovement::Utils::OrbitalChaseBehavior::_distance = 8.0f |
|
private |
◆ _hasWarnedInvalidTarget
| bool CameraMovement::Utils::OrbitalChaseBehavior::_hasWarnedInvalidTarget = false |
|
private |
◆ _isDragging
| bool CameraMovement::Utils::OrbitalChaseBehavior::_isDragging = false |
|
private |
◆ _lastMouseX
| float CameraMovement::Utils::OrbitalChaseBehavior::_lastMouseX = 0.0 |
|
private |
◆ _lastMouseY
| float CameraMovement::Utils::OrbitalChaseBehavior::_lastMouseY = 0.0 |
|
private |
◆ _maxDistance
| float CameraMovement::Utils::OrbitalChaseBehavior::_maxDistance = 50.0f |
|
private |
◆ _minDistance
| float CameraMovement::Utils::OrbitalChaseBehavior::_minDistance = 0.001f |
|
private |
◆ _mouseButtonCallbackId
◆ _pitch
| float CameraMovement::Utils::OrbitalChaseBehavior::_pitch = 0.35f |
|
private |
◆ _scrollCallbackId
◆ _scrollSensitivity
| float CameraMovement::Utils::OrbitalChaseBehavior::_scrollSensitivity = 1.1f |
|
private |
◆ _target
◆ _yaw
| float CameraMovement::Utils::OrbitalChaseBehavior::_yaw = 0.0f |
|
private |
The documentation for this class was generated from the following file: