28#include "Components/CComponentSystem.h"
29#include "Components/ILateUpdate.h"
88 class SKYLICHT_API CCameraBrain :
89 public CComponentSystem,
141 virtual ~CCameraBrain();
143 virtual void initComponent();
145 virtual void updateComponent();
147 virtual void lateUpdate();
214 inline const core::vector3df&
getUp()
float m_viewNear
Current blended near plane.
Definition CCameraBrain.h:115
CCamera * m_targetCamera
The target camera to blend towards.
Definition CCameraBrain.h:97
float m_lastFar
Last far plane before starting a new blend.
Definition CCameraBrain.h:136
CCamera * m_camera
Pointer to the main camera component being controlled.
Definition CCameraBrain.h:94
float m_lastNear
Last near plane before starting a new blend.
Definition CCameraBrain.h:133
core::vector3df m_lookAt
Current blended forward direction.
Definition CCameraBrain.h:106
const core::vector3df & getLookAt()
Gets the current blended forward look direction.
Definition CCameraBrain.h:205
const core::vector3df & getPosition()
Gets the current blended world position.
Definition CCameraBrain.h:196
core::vector3df m_lastPosition
Last position before starting a new blend.
Definition CCameraBrain.h:121
CCamera * getCamera()
Gets the main camera component controlled by this brain.
Definition CCameraBrain.h:160
float m_viewFar
Current blended far plane.
Definition CCameraBrain.h:118
void setTargetCamera(CCamera *cam, float blendTarget=1.0f)
Sets a new target camera and initiates blending.
core::vector3df m_lastUpVector
Last up direction before starting a new blend.
Definition CCameraBrain.h:127
core::vector3df m_lastLookAt
Last forward direction before starting a new blend.
Definition CCameraBrain.h:124
float m_lastFov
Last FOV before starting a new blend.
Definition CCameraBrain.h:130
const core::vector3df & getUp()
Gets the current blended 'up' vector.
Definition CCameraBrain.h:214
float m_blend
Current blending factor (0 to 1).
Definition CCameraBrain.h:100
float m_viewFov
Current blended FOV.
Definition CCameraBrain.h:112
core::vector3df m_upVector
Current blended up direction.
Definition CCameraBrain.h:109
void setBlendValue(float value)
Manually sets the blending factor.
Definition CCameraBrain.h:178
CCamera * getTargetCamera()
Gets the current target camera.
Definition CCameraBrain.h:169
core::vector3df m_position
Current blended world position.
Definition CCameraBrain.h:103
float getBlendValue()
Gets the current blending factor.
Definition CCameraBrain.h:187
This is an object class used to set up the camera, including its position, viewing angle,...
Definition CCamera.h:70
Definition ILateUpdate.h:6
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition AudioDebugLog.h:29