Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvEditor::Core::CameraController Class Reference

#include <CameraController.h>

Public Member Functions

 CameraController (OvEditor::Panels::AView &p_view, OvRendering::LowRenderer::Camera &p_camera, OvMaths::FVector3 &p_position, bool p_enableFocusInputs=false)
 
void HandleInputs (float p_deltaTime)
 
void MoveToTarget (OvCore::ECS::Actor &p_target)
 
void SetSpeed (float p_speed)
 
float GetSpeed () const
 
void SetPosition (const OvMaths::FVector3 &p_position)
 
void SetRotation (const OvMaths::FQuaternion &p_rotation)
 
OvMaths::FVector3 GetPosition () const
 
bool IsRightMousePressed () const
 

Detailed Description

A simple camera controller used to navigate into views

Constructor & Destructor Documentation

◆ CameraController()

OvEditor::Core::CameraController::CameraController ( OvEditor::Panels::AView p_view,
OvRendering::LowRenderer::Camera p_camera,
OvMaths::FVector3 p_position,
bool  p_enableFocusInputs = false 
)

Constructor

Parameters
p_view
p_camera
p_position
p_enableFocusInputs@project: Overload
Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

Member Function Documentation

◆ GetPosition()

OvMaths::FVector3 OvEditor::Core::CameraController::GetPosition ( ) const

Returns the position of the camera

◆ GetSpeed()

float OvEditor::Core::CameraController::GetSpeed ( ) const

Returns the camera speed

◆ HandleInputs()

void OvEditor::Core::CameraController::HandleInputs ( float  p_deltaTime)

Handle mouse and keyboard inputs @parma p_deltaTime

◆ IsRightMousePressed()

bool OvEditor::Core::CameraController::IsRightMousePressed ( ) const

Returns true if the right mouse click is being pressed

◆ MoveToTarget()

void OvEditor::Core::CameraController::MoveToTarget ( OvCore::ECS::Actor p_target)

Asks the camera to move to the target actor

Parameters
p_target

◆ SetPosition()

void OvEditor::Core::CameraController::SetPosition ( const OvMaths::FVector3 p_position)

Defines the position of the camera

Parameters
p_position

◆ SetRotation()

void OvEditor::Core::CameraController::SetRotation ( const OvMaths::FQuaternion p_rotation)

Defines the rotation of the camera

Parameters
p_rotation

◆ SetSpeed()

void OvEditor::Core::CameraController::SetSpeed ( float  p_speed)

Defines the speed of the camera

Parameters
p_speed

The documentation for this class was generated from the following files: