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

The U4DCameraFirstPerson class provides the camera behavior for a First Person 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 U4DCameraFirstPerson * sharedInstance ()
 Method which returns an instace of the U4DCameraFirstPerson singleton. More...
 

Protected Member Functions

 U4DCameraFirstPerson ()
 Camera first person constructor.
 
 ~U4DCameraFirstPerson ()
 Camera first person destructor.
 

Detailed Description

The U4DCameraFirstPerson class provides the camera behavior for a First Person camera.

Member Function Documentation

◆ setParameters()

void U4DEngine::U4DCameraFirstPerson::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 ahead the 3D model

Implements U4DEngine::U4DCameraInterface.

◆ sharedInstance()

U4DCameraFirstPerson * U4DEngine::U4DCameraFirstPerson::sharedInstance ( )
static

Method which returns an instace of the U4DCameraFirstPerson singleton.

Returns
instance of the U4DCameraFirstPerson singleton

◆ update()

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

Updates the state of the camera behavior.

Parameters
dttime-step value

Implements U4DEngine::U4DCameraInterface.