Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DCameraBasicFollow Class Reference

The U4DCameraBasicFollow class provides the camera behavior for a Basic Follow camera. More...

Inherits U4DEngine::U4DCameraInterface.

Public Member Functions

void update (double dt)
 Updates the state of the camera behavior. More...
 
void setParameters (U4DModel *uModel, float uXOffset, float uYOffset, float uZOffset)
 Sets the parameters utilize by the behavior of the camera. More...
 
void setParametersWithBoxTracking (U4DModel *uModel, float uXOffset, float uYOffset, float uZOffset, U4DPoint3n uMinPoint, U4DPoint3n uMaxPoint)
 
void trackBoundingBox ()
 
U4DBoundingAABB * getBoundingBox ()
 
void pauseBoxTracking ()
 
void resumeBoxTracking ()
 
- Public Member Functions inherited from U4DEngine::U4DCameraInterface
virtual ~U4DCameraInterface ()
 Virtual destructor for interface. The actual destructor implementation is set by the subclasses.
 

Static Public Member Functions

static U4DCameraBasicFollow * sharedInstance ()
 Method which returns an instace of the U4DCameraBasicFollow singleton. More...
 

Public Attributes

U4DBoundingAABB * cameraBoundingBox
 

Protected Member Functions

 U4DCameraBasicFollow ()
 Camera basic follow constructor.
 
 ~U4DCameraBasicFollow ()
 Camera basic follow destructor.
 

Detailed Description

The U4DCameraBasicFollow class provides the camera behavior for a Basic Follow camera.

Member Function Documentation

◆ setParameters()

void U4DEngine::U4DCameraBasicFollow::setParameters ( U4DModel *  uModel,
float  uXOffset,
float  uYOffset,
float  uZOffset 
)
virtual

Sets the parameters utilize by the behavior of the camera.

Parameters
uModel3D model entity to follow
uXOffsetx-distance offset
uYOffsety-distance offset
uZOffsetz-distance offset. This offset represents the distance the camera is behind the 3D model

Implements U4DEngine::U4DCameraInterface.

◆ sharedInstance()

U4DCameraBasicFollow * U4DEngine::U4DCameraBasicFollow::sharedInstance ( )
static

Method which returns an instace of the U4DCameraBasicFollow singleton.

Returns
instance of the U4DCameraBasicFollow singleton

◆ update()

void U4DEngine::U4DCameraBasicFollow::update ( double  dt)
virtual

Updates the state of the camera behavior.

Parameters
dttime-step value

Implements U4DEngine::U4DCameraInterface.