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>
◆ DtFpsOrientationUpdater()
| makVre::DtFpsOrientationUpdater::DtFpsOrientationUpdater |
( |
DtDe & | de, |
|
|
DtUniqueID | id ) |
Constructor.
- Parameters
-
| de | Reference to the display element |
| id | Unique identifier for this updater |
References de().
◆ ~DtFpsOrientationUpdater()
| virtual makVre::DtFpsOrientationUpdater::~DtFpsOrientationUpdater |
( |
| ) |
|
|
overridevirtual |
◆ update()
| virtual void makVre::DtFpsOrientationUpdater::update |
( |
DtTime | tNow | ) |
|
|
overridevirtual |
Updates the orientation for the current frame.
- Parameters
-
| tNow | Current 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
-
| heading | Heading angle in degrees |
| useYaw | Flag 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.
◆ 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: