VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtFpsOrientationUpdater Class Reference

Detailed Description

DtFpsOrientationUpdater controls the orientation of scene objects in first-person shooter mode. It allows setting the heading of the model and updates the object's orientation accordingly each frame.

#include <DtFpsOrientationUpdater.h>

Inheritance diagram for makVre::DtFpsOrientationUpdater:
[legend]

Public Member Functions

 DtFpsOrientationUpdater (DtDe &de, DtUniqueID id)
 
virtual ~DtFpsOrientationUpdater () override
 
virtual void update (DtTime tNow) override
 
virtual void setModelHeading (double heading, bool useYaw)
 

Protected Attributes

double myModelHeading
 
bool myUseYaw
 

Constructor & Destructor Documentation

◆ DtFpsOrientationUpdater()

makVre::DtFpsOrientationUpdater::DtFpsOrientationUpdater ( DtDe & de,
DtUniqueID id )

Constructor.

Parameters
deReference to the display element
idUnique identifier for this updater

References de().

◆ ~DtFpsOrientationUpdater()

virtual makVre::DtFpsOrientationUpdater::~DtFpsOrientationUpdater ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ update()

virtual void makVre::DtFpsOrientationUpdater::update ( DtTime tNow)
overridevirtual

Updates the orientation for the current frame.

Parameters
tNowCurrent simulation time

Updates the scene object's orientation based on the current model heading and yaw configuration.

◆ setModelHeading()

virtual void makVre::DtFpsOrientationUpdater::setModelHeading ( double heading,
bool useYaw )
virtual

Sets the heading of the model.

Parameters
headingHeading angle in degrees
useYawFlag indicating whether to use yaw rotation or direct orientation

Controls the heading rotation of the model. When useYaw is true, the heading is applied as a yaw rotation. Otherwise, it's applied as a direct orientation change.

Member Data Documentation

◆ myModelHeading

double makVre::DtFpsOrientationUpdater::myModelHeading
protected

Current heading angle of the model in degrees.

◆ myUseYaw

bool makVre::DtFpsOrientationUpdater::myUseYaw
protected

Flag indicating whether to use yaw rotation or direct orientation.


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