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

The U4DCameraThirdPerson class provides the camera behavior for a Third 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 ()
 
U4DBoundingAABBgetBoundingBox ()
 
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 U4DCameraThirdPersonsharedInstance ()
 Method which returns an instace of the U4DCameraThirdPerson singleton. More...
 

Protected Member Functions

 U4DCameraThirdPerson ()
 Camera third person constructor.
 
 ~U4DCameraThirdPerson ()
 Camera third person destructor.
 

Detailed Description

The U4DCameraThirdPerson class provides the camera behavior for a Third Person camera.

Member Function Documentation

◆ setParameters()

void U4DEngine::U4DCameraThirdPerson::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()

U4DCameraThirdPerson * U4DEngine::U4DCameraThirdPerson::sharedInstance ( )
static

Method which returns an instace of the U4DCameraThirdPerson singleton.

Returns
instance of the U4DCameraThirdPerson singleton

◆ update()

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

Updates the state of the camera behavior.

Parameters
dttime-step value

Implements U4DEngine::U4DCameraInterface.