VR-Engage  2.3
Loading...
Searching...
No Matches
humanObserverUpdater.h
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2026 MAK Technologies
3** All rights reserved.
4******************************************************************************/
5
6//! \file humanObserverUpdater.h
7//! \brief Defines DtHumanObserverUpdater for managing human-specific observer behavior
8//! \ingroup vreHumanFrontend
9
10#pragma once
11
13
15
17
21
22#include <vrvCore/DtUniqueID.h>
23
24namespace makVre
25{
26
28{
29//! \ingroup RoleConfigParams
30//! \defgroup HumanObserverUpdaterRoleParams Human Observer Updater Role Parameters
31//! \roleInherits{PlayerComponentRoleParams}
32//! Configuration Options for human observer updater component.
33//! @{
34
35//! \vreRoleParam{attachModeTransitionSpeed,double,8.0,humanObserverUpdater,Speed of transitions when changing attachment modes.}
36constexpr const char* attachModeTransitionSpeed = "attachModeTransitionSpeed";
37
38//! \vreRoleParam{cutToFirstPersonDist,double,0.4,humanObserverUpdater,Distance threshold for cutting to first-person view.}
39constexpr const char* cutToFirstPersonDist = "cutToFirstPersonDist";
40
41//! \vreRoleParam{nightVisionSensorMode,string,NVG,humanObserverUpdater,Sensor mode name for night vision goggles.}
42constexpr const char* nightVisionSensorMode = "nightVisionSensorMode";
43
44//! \vreRoleParam{offsets,table,{},humanObserverUpdater,Table of observer offset configurations for different postures and view modes.}
45constexpr const char* offsets = "offsets";
46
47//! \vreRoleParam{postureChangeSpeed,double,2.0,humanObserverUpdater,Speed of observer position changes when posture changes.}
48constexpr const char* postureChangeSpeed = "postureChangeSpeed";
49
50//! \vreRoleParam{scopeChannelName,string,RemoteView,humanObserverUpdater,Channel name for scope rendering.}
51constexpr const char* scopeChannelName = "scopeChannelName";
52
53//! \vreRoleParam{scopeWalkingPitch,double,-45.0,humanObserverUpdater,Pitch angle for scope view when walking.}
54constexpr const char* scopeWalkingPitch = "scopeWalkingPitch";
55
56//! \vreRoleParam{thirdPersonAimSpeed,double,9.0,humanObserverUpdater,Speed of observer movements in third-person aiming mode.}
57constexpr const char* thirdPersonAimSpeed = "thirdPersonAimSpeed";
58
59//! @}
60} // namespace HumanObserverUpdaterConfig
61
62} // namespace makVre
63
64namespace makVrv
65{
66//! \brief Forward declaration of the display element class
67class DtDe;
68
69//! \brief Forward declaration of the observer class
70class DtObserver;
71
72//! \brief Forward declaration of the scene object class
73class DtSceneObject;
74}; // namespace makVrv
75
76namespace makVre
77{
78//! \brief Forward declaration of the initialization table class
79class DtInitTable;
80
81//! \brief Forward declaration of the entity resolver class
83
84//! \brief Type identifier for DtHumanObserverUpdater component
85constexpr const char* DtHumanObserverUpdaterType = "DtHumanObserverUpdater";
86
87//! \brief Observer updater component for the human role
88//!
89//! DtHumanObserverUpdater manages the observer (camera) behavior for the human role,
90//! including handling different view modes, player postures, attachments, and special
91//! effects like NVG and flashlights. It handles positioning, orientation, and updates
92//! of the observer based on the player state.
94{
95public:
96 //! \brief Default constructor
98
99 //! \brief Virtual destructor
100 virtual ~DtHumanObserverUpdater() override;
101
102 //! \brief Initializes the observer updater component
103 //! \param player Pointer to the player station
104 //! \param config Configuration settings for initialization
105 //! \return True if initialization was successful, false otherwise
106 virtual bool initialize(DtPlayerStation* player, DtInitTable& config) override;
107
108 //! \brief Performs post-initialization setup
109 //! \return True if post-initialization was successful, false otherwise
110 virtual bool postInitialize() override;
111
112 //! \brief Updates the observer for the current frame
113 //! \param dt Delta time since the last frame in seconds
114 virtual void tick(double dt) override;
115
116 //! \brief Cleans up resources when the component is being shut down
117 virtual void shutdown() override;
118
119 //! \brief Returns the component type identifier
120 //! \return The component type string
121 virtual const char* type() const override;
122
123 //! \brief Gets the current observer attachment mode
124 //! \return Current observer attachment mode
126
127 //! \brief Handles changes to the current weapon.
128 //! Triggers an update of the first-person rig to match the new weapon.
129 //! Public so DtHumanRenderUpdater can update the rig when the weapon changes.
130 //! \param weaponIndex the new weapon index
131 virtual void onWeaponIndexChanged( int weaponIndex );
132
133protected:
134
135 //! \brief Updates the observer attachment offset based on current state
136 //! \param dt Delta time since the last frame in seconds
137 void updateAttachmentOffset(double dt);
138
139 //! \brief Gets the current pitch angle of the player
140 //! \return Current pitch angle in radians
141 double getPitch();
142
143 //! \brief Gets the current yaw angle of the player
144 //! \return Current yaw angle in radians
145 double getYaw();
146
147 //! \brief Gets the current camera offset from the player
148 //! \return Camera offset vector
149 DtVector getCameraOffset();
150
151 //! \brief Updates the target zoom level based on current observer state and equipment
152 //!
153 //! This function calculates and sets the appropriate zoom level based on the current
154 //! observer attach mode, aiming state, and equipped weapon type. When aiming from
155 //! first person view (and not using VR), it applies equipment-specific zoom levels:
156 //! - Guns: Uses currentGunZoomLevel attribute (default 2.2x if not set)
157 //! - Launchers: Uses viewMagnification attribute (default 1.0x if not set)
158 //! When not aiming or not in first person mode, zoom is reset to 1.0x.
159 //!
160 //! \note This function modifies the myTargetZoom member variable
161 //! \note VR mode disables zoom functionality
162 //! \note Gun zoom levels are now configured per weapon via currentGunZoomLevel attribute
163 virtual void updateZoomLevel();
164
165 //! \brief Rotates a vector by the specified pitch and yaw angles
166 //! \param localSpineToCamera Vector to rotate
167 //! \param pitch Pitch angle in radians
168 //! \param yaw Yaw angle in radians
169 //! \return Rotated vector
170 DtVector rotateVector(const DtVector& localSpineToCamera, double pitch, double yaw = 0.0);
171
172 //! \brief Updates the observer position and orientation based on current state
174
175 //! \brief Updates the scope observer properties
176 //! \param observer Pointer to the scope observer to update
177 void updateScopeObserver(makVrv::DtObserver* observer);
178
179 //! \brief Updates the observer view magnification (zoom)
180 //! \param dt Delta time since the last frame in seconds
182
183 //! \brief Sets the destination offset for the observer
184 //! \param mode Observer attachment mode
185 //! \param posture Current human posture
187
188 //! \brief Updates the flashlight state based on current player state
189 virtual void updateFlashlightState();
190
191 //! \brief Updates the compass display state
192 //!
193 //! Updates DisplayCompass state attribute in the DtObserverModeManager, with value
194 //! of the makVre::DtState attribute "compass". This shows/hides the built-in VR-Vantage
195 //! compass widget.
196 virtual void updateCompassState();
197
198 //! \brief Handles changes in night vision goggles state
199 //! \param nvg True if NVG is enabled, false otherwise
200 virtual void onNVGChanged(bool nvg);
201
202 //! \brief Checks if the observer pitch is at an angle above the terrain
203 //! \return True if the observer pitch is above the threshold (0.8), false otherwise
204 virtual bool observerPitchCheck();
205
206 //! \brief Updates state attributes based on current observer state
207 virtual void updateStateAttributes() override;
208
209 //! \brief Handles observer mode setting changes
210 //! \param mode Observer mode that changed
211 //! \param setting Setting that changed
212 //!
213 //! Called when an observer mode's setting changes; if it's the mode our observer is
214 //! using and the setting is DisplayCompass, update corresponding state attribute.
215 virtual void slot_observerModeSettingChanged(int mode, int setting);
216
217protected:
218 //! \brief Pointer to the managed observer
219 makVrv::DtObserver* myObserver;
220
221 //! \brief Indicates whether this component set the fixed audio listener observer
223
224 //! \brief Unique ID of the player element
225 makVrv::DtUniqueID myPlayerElementID;
226
227 //! \brief Flag indicating if the observer is currently attached
229
230 //! \brief Position of the spine end point
231 //!
232 //! These two should really be pulled from the gun/arms model
233 //! once vrvDiguy can getLinkPosition
235
236 //! \brief Vector from spine to camera position
238
239 //! \brief Distance threshold for switching to first-person view
241
242 //! \brief Speed of posture change transition
244
245 //! \brief Speed of attachment mode transition
247
248 //! \brief Speed of third-person aiming transition
250
251 //! \brief Structure representing an observer offset configuration
252 struct Offset
253 {
254 DtVector pos; //!< Position offset vector
255 HumanPosture posture; //!< Human posture associated with this offset
256 ObserverAttachMode mode; //!< Observer attachment mode associated with this offset
257
258 //! \brief Equality comparison operator
259 //! \param other Offset to compare with
260 //! \return True if offsets are equal, false otherwise
261 bool operator==(const Offset& other)
262 {
263 return pos == other.pos && posture == other.posture && mode == other.mode;
264 }
265
266 //! \brief Inequality comparison operator
267 //! \param other Offset to compare with
268 //! \return True if offsets are not equal, false otherwise
269 bool operator!=(const Offset& other)
270 {
271 return pos != other.pos || posture != other.posture || mode != other.mode;
272 }
273
274 //! \brief Assignment operator
275 //! \param other Offset to assign from
276 //! \return Reference to this offset
277 Offset& operator=(const Offset& other)
278 {
279 pos = other.pos;
280 posture = other.posture;
281 mode = other.mode;
282 return *this;
283 }
284 };
285 //! \brief Map of observer offsets indexed by a combined posture and mode key
286 std::map<int, Offset> myOffsets;
287
288 //! \brief Builds a lookup key for the offset map from posture and mode
289 //! \param mode Observer attachment mode
290 //! \param posture Human posture
291 //! \return Combined integer key for offset lookup
292 int buildOffsetKey(ObserverAttachMode mode, HumanPosture posture) { return int(mode) | (int(posture) << 16); }
293 //! \brief Previous observer offset
295
296 //! \brief Current observer offset
298
299 //! \brief Target destination observer offset
301
302 //! \brief Flag indicating if posture has changed this frame
304
305 //! \brief Flag indicating that the weapon changed and hasn't been updated yet.
307
308 //! \brief Target zoom level for the observer
310
311 //! \brief Interpolator for smooth zoom transitions
313
314 //! \brief Last known state of the flashlight
316
317 //! \brief Last known state of the compass
319
320 //! \brief Tracks the role-configured compass visibility override.
322
323 //! \brief Indicates that the next compass update applies the role default.
325
326 //! \brief Last known state of night vision goggles
328
329 //! \brief Last flashlight pitch angle
331
332 //! \brief Last flashlight yaw angle
334
335 //! \brief Flag indicating if using VR mode
337
338 //! \brief Interpolator for first-person model translation offset
340
341 //! \brief Interpolator for first-person model rotation offset
343
344 //! \brief Flag indicating if the player was aiming in the previous frame
346
347 //! \brief Name of the scope channel
349
350 //! \brief Scope walking pitch adjustment
352
353 //! \brief Maximum allowed observer pitch angle
355
356 //! \brief Name of the observer mode to use for NVG
357 //!
358 //! DtObserverMode to use for night vision goggles mode
360
361 //! \brief Handle for observer attach mode.
362 //! \vreAttrKey{observerAttachMode}
364
365 //! \brief Handle for aiming state.
366 //! \vreAttrKey{aiming}
368
369 //! \brief Handle for current equipment.
370 //! \vreAttrKey{currentEquipment}
372
373 //! \brief Handle for current posture.
374 //! \vreAttrKey{posture}
376
377 //! \brief Handle indicating whether gaze pitch is active.
378 //! \vreAttrKey{useGazePitch}
380
381 //! \brief Handle for gaze pitch value.
382 //! \vreAttrKey{gazePitch}
384
385 //! \brief Handle for simulated pitch value.
386 //! \vreAttrKey{simulatedPitch}
388
389 //! \brief Handle indicating whether gaze yaw is active.
390 //! \vreAttrKey{useGazeYaw}
392
393 //! \brief Handle for gaze yaw value.
394 //! \vreAttrKey{gazeYaw}
396
397 //! \brief Handle for drone-control state.
398 //! \vreAttrKey{usingDrone}
400
401 //! \brief Handle for launcher element identifier.
402 //! \vreAttrKey{launcherElementId}
404
405 //! \brief Handle for binocular/launcher view magnification.
406 //! \vreAttrKey{viewMagnification}
408
409 //! \brief Handle for flashlight state.
410 //! \vreAttrKey{flashlight}
412
413 //! \brief Handle for flashlight pitch offset.
414 //! \vreAttrKey{flashlightPitch}
416
417 //! \brief Handle for flashlight yaw offset.
418 //! \vreAttrKey{flashlightYaw}
420
421 //! \brief Handle for compass state.
422 //! \vreAttrKey{compass}
424
425 //! \brief Handle for health value.
426 //! \vreAttrKey{health}
428
429 //! \brief Handle for launcher state.
430 //! \vreAttrKey{launcherState}
432
433 //! \brief Handle for launcher type.
434 //! \vreAttrKey{launcherType}
436
437 //! \brief Handle indicating whether the player carries embarked entities.
438 //! \vreAttrKey{hasEmbarkedEntities}
440
441 //! \brief Handle for focus-on-entity state.
442 //! \vreAttrKey{focusOnEntity}
444
445 //! \brief Handle for VR-enabled state.
446 //! \vreAttrKey{vr-enabled}
448
449 //! \brief Handle for active drone entity identifier.
450 //! \vreAttrKey{droneEntityId}
452
453 //! \brief Handle for current gun zoom level.
454 //! \vreAttrKey{currentGunZoomLevel}
456
457 //! \brief Handle for observer geocentric location.
458 //! \vreAttrKey{observerLocation}
460
461 //! \brief Handle for observer geocentric orientation.
462 //! \vreAttrKey{observerOrientation}
464};
465} // namespace makVre
Type-specific handle class for attributes.
Definition attributeHandle.h:229
Entity resolution and mapping system.
Definition entityResolver.h:52
double myScopeWalkingPitch
Scope walking pitch adjustment.
Definition humanObserverUpdater.h:351
DtAttributeHandleType< bool > myCompassAttr
Handle for compass state.
Definition humanObserverUpdater.h:423
bool myPostureChanged
Flag indicating if posture has changed this frame.
Definition humanObserverUpdater.h:303
DtAttributeHandleType< LauncherType > myLauncherTypeAttr
Handle for launcher type.
Definition humanObserverUpdater.h:435
makVre::DtLinearInterpolator< DtVector > * myFirstPersonModelTranslationOffsetInterpolator
Interpolator for first-person model translation offset.
Definition humanObserverUpdater.h:339
DtAttributeHandleType< Equipment > myCurrentEquipmentAttr
Handle for current equipment.
Definition humanObserverUpdater.h:371
DtAttributeHandleType< double > myCurrentGunZoomLevelAttr
Handle for current gun zoom level.
Definition humanObserverUpdater.h:455
double getPitch()
Gets the current pitch angle of the player.
DtVector mySpineEndPosition
Position of the spine end point.
Definition humanObserverUpdater.h:234
DtAttributeHandleType< double > mySimulatedPitchAttr
Handle for simulated pitch value.
Definition humanObserverUpdater.h:387
int buildOffsetKey(ObserverAttachMode mode, HumanPosture posture)
Builds a lookup key for the offset map from posture and mode.
Definition humanObserverUpdater.h:292
DtHumanObserverUpdater()
Default constructor.
virtual void onNVGChanged(bool nvg)
Handles changes in night vision goggles state.
DtSettingsOverrideGuard mySettingsOverrideGuard
Tracks the role-configured compass visibility override.
Definition humanObserverUpdater.h:321
bool myInitialCompassStatePending
Indicates that the next compass update applies the role default.
Definition humanObserverUpdater.h:324
DtAttributeHandleType< DtVector > myObserverLocationAttr
Handle for observer geocentric location.
Definition humanObserverUpdater.h:459
bool myWeaponChanged
Flag indicating that the weapon changed and hasn't been updated yet.
Definition humanObserverUpdater.h:306
DtAttributeHandleType< bool > myVrEnabledAttr
Handle for VR-enabled state.
Definition humanObserverUpdater.h:447
bool myLastNVGState
Last known state of night vision goggles.
Definition humanObserverUpdater.h:327
bool myLastFlashlightState
Last known state of the flashlight.
Definition humanObserverUpdater.h:315
DtAttributeHandleType< bool > myUseGazeYawAttr
Handle indicating whether gaze yaw is active.
Definition humanObserverUpdater.h:391
void updateAttachmentOffset(double dt)
Updates the observer attachment offset based on current state.
Offset myDestinationOffset
Target destination observer offset.
Definition humanObserverUpdater.h:300
double myThirdPersonAimSpeed
Speed of third-person aiming transition.
Definition humanObserverUpdater.h:249
bool myObserverIsAttached
Flag indicating if the observer is currently attached.
Definition humanObserverUpdater.h:228
virtual void updateZoomLevel()
Updates the target zoom level based on current observer state and equipment.
DtAttributeHandleType< double > myHealthAttr
Handle for health value.
Definition humanObserverUpdater.h:427
void updateObserverPositionAndOrientation()
Updates the observer position and orientation based on current state.
DtAttributeHandleType< makVrv::DtElementID > myLauncherElementIdAttr
Handle for launcher element identifier.
Definition humanObserverUpdater.h:403
makVrv::DtUniqueID myPlayerElementID
Unique ID of the player element.
Definition humanObserverUpdater.h:225
DtAttributeHandleType< bool > myAimingAttr
Handle for aiming state.
Definition humanObserverUpdater.h:367
double myTargetZoom
Target zoom level for the observer.
Definition humanObserverUpdater.h:309
DtAttributeHandleType< bool > myHasEmbarkedEntitiesAttr
Handle indicating whether the player carries embarked entities.
Definition humanObserverUpdater.h:439
virtual ~DtHumanObserverUpdater() override
Virtual destructor.
double myLastFlashlightYaw
Last flashlight yaw angle.
Definition humanObserverUpdater.h:333
DtAttributeHandleType< bool > myFocusOnEntityAttr
Handle for focus-on-entity state.
Definition humanObserverUpdater.h:443
Offset myCurrentOffset
Current observer offset.
Definition humanObserverUpdater.h:297
double myAttachModeSpeed
Speed of attachment mode transition.
Definition humanObserverUpdater.h:246
bool myLastCompassState
Last known state of the compass.
Definition humanObserverUpdater.h:318
bool myWasAiming
Flag indicating if the player was aiming in the previous frame.
Definition humanObserverUpdater.h:345
double myPostureChangeSpeed
Speed of posture change transition.
Definition humanObserverUpdater.h:243
virtual void updateStateAttributes() override
Updates state attributes based on current observer state.
double myLastFlashlightPitch
Last flashlight pitch angle.
Definition humanObserverUpdater.h:330
DtAttributeHandleType< double > myFlashlightPitchAttr
Handle for flashlight pitch offset.
Definition humanObserverUpdater.h:415
DtAttributeHandleType< HumanPosture > myPostureAttr
Handle for current posture.
Definition humanObserverUpdater.h:375
DtVector getCameraOffset()
Gets the current camera offset from the player.
Offset myPriorOffset
Previous observer offset.
Definition humanObserverUpdater.h:294
DtAttributeHandleType< bool > myUsingDroneAttr
Handle for drone-control state.
Definition humanObserverUpdater.h:399
makVre::DtLinearInterpolator< DtVector > * myFirstPersonModelRotateOffsetInterpolator
Interpolator for first-person model rotation offset.
Definition humanObserverUpdater.h:342
bool myAudioListenerPinned
Indicates whether this component set the fixed audio listener observer.
Definition humanObserverUpdater.h:222
std::string myScopeChannelName
Name of the scope channel.
Definition humanObserverUpdater.h:348
DtAttributeHandleType< ObserverAttachMode > myObserverAttachModeAttr
Handle for observer attach mode.
Definition humanObserverUpdater.h:363
double getYaw()
Gets the current yaw angle of the player.
void updateObserverViewMagnification(double dt)
Updates the observer view magnification (zoom)
virtual const char * type() const override
Returns the component type identifier.
virtual void tick(double dt) override
Updates the observer for the current frame.
virtual void shutdown() override
Cleans up resources when the component is being shut down.
bool myUsingVr
Flag indicating if using VR mode.
Definition humanObserverUpdater.h:336
DtAttributeHandleType< bool > myUseGazePitchAttr
Handle indicating whether gaze pitch is active.
Definition humanObserverUpdater.h:379
DtVector rotateVector(const DtVector &localSpineToCamera, double pitch, double yaw=0.0)
Rotates a vector by the specified pitch and yaw angles.
virtual void onWeaponIndexChanged(int weaponIndex)
Handles changes to the current weapon. Triggers an update of the first-person rig to match the new we...
DtVector mySpineToCameraVector
Vector from spine to camera position.
Definition humanObserverUpdater.h:237
std::string myNightVisionSensorMode
Name of the observer mode to use for NVG.
Definition humanObserverUpdater.h:359
double myCutToFirstPersonDist
Distance threshold for switching to first-person view.
Definition humanObserverUpdater.h:240
virtual bool initialize(DtPlayerStation *player, DtInitTable &config) override
Initializes the observer updater component.
DtAttributeHandleType< bool > myFlashlightAttr
Handle for flashlight state.
Definition humanObserverUpdater.h:411
virtual bool observerPitchCheck()
Checks if the observer pitch is at an angle above the terrain.
DtAttributeHandleType< double > myViewMagnificationAttr
Handle for binocular/launcher view magnification.
Definition humanObserverUpdater.h:407
makVrv::DtObserver * myObserver
Pointer to the managed observer.
Definition humanObserverUpdater.h:219
DtAttributeHandleType< LauncherState > myLauncherStateAttr
Handle for launcher state.
Definition humanObserverUpdater.h:431
void updateScopeObserver(makVrv::DtObserver *observer)
Updates the scope observer properties.
virtual bool postInitialize() override
Performs post-initialization setup.
DtAttributeHandleType< DtTaitBryan > myObserverOrientationAttr
Handle for observer geocentric orientation.
Definition humanObserverUpdater.h:463
DtAttributeHandleType< double > myFlashlightYawAttr
Handle for flashlight yaw offset.
Definition humanObserverUpdater.h:419
double myMaxObserverPitch
Maximum allowed observer pitch angle.
Definition humanObserverUpdater.h:354
virtual void slot_observerModeSettingChanged(int mode, int setting)
Handles observer mode setting changes.
std::map< int, Offset > myOffsets
Map of observer offsets indexed by a combined posture and mode key.
Definition humanObserverUpdater.h:286
virtual void updateFlashlightState()
Updates the flashlight state based on current player state.
virtual ObserverAttachMode getAttachMode()
Gets the current observer attachment mode.
makVre::DtLinearInterpolator< double > * myZoomInterpolator
Interpolator for smooth zoom transitions.
Definition humanObserverUpdater.h:312
DtAttributeHandleType< double > myGazeYawAttr
Handle for gaze yaw value.
Definition humanObserverUpdater.h:395
DtAttributeHandleType< double > myGazePitchAttr
Handle for gaze pitch value.
Definition humanObserverUpdater.h:383
virtual void updateCompassState()
Updates the compass display state.
virtual void setDestinationOffset(ObserverAttachMode mode, HumanPosture posture)
Sets the destination offset for the observer.
DtAttributeHandleType< DtEntityIdentifier > myDroneEntityIdAttr
Handle for active drone entity identifier.
Definition humanObserverUpdater.h:451
Table-based access to Lua state for configuration data.
Definition initializer.h:38
Linear interpolation template class.
Definition linearInterpolator.h:23
DtObserverUpdater()
Default constructor for DtObserverUpdater.
virtual DtPlayerStation & player()
Gets the player station.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Tracks temporary settings overrides and conditionally restores them.
Definition settingsOverrideGuard.h:180
Base component for managing observer parameters and view settings.
constexpr const char * postureChangeSpeed
Definition humanObserverUpdater.h:48
constexpr const char * cutToFirstPersonDist
Definition humanObserverUpdater.h:39
constexpr const char * thirdPersonAimSpeed
Definition humanObserverUpdater.h:57
constexpr const char * scopeChannelName
Definition humanObserverUpdater.h:51
constexpr const char * nightVisionSensorMode
Definition humanObserverUpdater.h:42
constexpr const char * offsets
Definition humanObserverUpdater.h:45
constexpr const char * attachModeTransitionSpeed
Definition humanObserverUpdater.h:36
constexpr const char * scopeWalkingPitch
Definition humanObserverUpdater.h:54
Defines export macros for the Human Frontend library.
#define HUMAN_DLL
Definition export.h:19
Provides a template class for linear interpolation between values.
Definition humanObserverUpdater.h:28
!
Definition glsVreMessageUtil.h:50
ObserverAttachMode
Enumeration of camera/observer attachment offsets.
Definition stateDefines.h:44
HumanPosture
Enumeration of human posture states.
Definition stateDefines.h:30
constexpr const char * DtHumanObserverUpdaterType
Type identifier for DtHumanObserverUpdater component.
Definition humanObserverUpdater.h:85
Definition appLauncherComponent.h:28
Defines a guard for temporary, non-persistent settings overrides.
Common enumeration definitions used throughout the VREngage system.
Structure representing an observer offset configuration.
Definition humanObserverUpdater.h:253
bool operator==(const Offset &other)
Equality comparison operator.
Definition humanObserverUpdater.h:261
bool operator!=(const Offset &other)
Inequality comparison operator.
Definition humanObserverUpdater.h:269
Offset & operator=(const Offset &other)
Assignment operator.
Definition humanObserverUpdater.h:277
DtVector pos
Position offset vector.
Definition humanObserverUpdater.h:254
HumanPosture posture
Human posture associated with this offset.
Definition humanObserverUpdater.h:255
ObserverAttachMode mode
Observer attachment mode associated with this offset.
Definition humanObserverUpdater.h:256
Defines the base class for all VREngage messages.