|
VR-Engage
2.2
|
This class extends the base human movement actuator descriptor to add configuration for fatigue modeling. Fatigue affects entity movement speed based on activity levels, with different increase and recovery rates for different intensity levels, and thresholds that determine when fatigue starts to accumulate or how it affects movement capabilities.
#include <vreHumanMovementActuatorDescriptor.h>
Static Public Member Functions | |
| static DtComponentDescriptor * | creator () |
Protected Attributes | |
| DtRwReal | myFatigueIncreaseRateLow |
| DtRwReal | myFatigueIncreaseRateMedium |
| DtRwReal | myFatigueIncreaseRateHigh |
| DtRwReal | myFatigueRecoveryRateLow |
| DtRwReal | myFatigueRecoveryRateMedium |
| DtRwReal | myFatigueRecoveryRateHigh |
| DtRwReal | myFatigueMaxForMovement |
| DtRwReal | myFatigueThresholdPercent |
Private Member Functions | |
| DtVreHumanMovementActuatorDescriptor () | |
|
private |
Default constructor (not implemented)
Default constructor is private and not implemented to prevent creation of instances without proper initialization.
Referenced by DtVreHumanMovementActuatorDescriptor(), and operator=().
| makVre::DtVreHumanMovementActuatorDescriptor::DtVreHumanMovementActuatorDescriptor | ( | const DtString & | componentName, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor with component name.
| componentName | The name of this component |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new human movement actuator descriptor with the specified name.
| makVre::DtVreHumanMovementActuatorDescriptor::DtVreHumanMovementActuatorDescriptor | ( | const DtVreHumanMovementActuatorDescriptor & | orig, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Copy constructor.
| orig | The source descriptor to copy from |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new human movement actuator descriptor as a copy of the provided original.
References DtVreHumanMovementActuatorDescriptor().
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the descriptor.
| DtVreHumanMovementActuatorDescriptor & makVre::DtVreHumanMovementActuatorDescriptor::operator= | ( | const DtVreHumanMovementActuatorDescriptor & | orig | ) |
Assignment operator.
| orig | The source descriptor to copy from |
Assigns the contents of the provided descriptor to this one.
References DtVreHumanMovementActuatorDescriptor().
|
overridevirtual |
Gets the type identifier for this descriptor.
Returns a unique type identifier string for this descriptor type. Will return DtVreHumanMovementActuatorDescriptorType.
|
overridevirtual |
Creates a clone of this descriptor.
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new human movement actuator descriptor as a deep copy of this one.
|
static |
Factory function to create a new instance of this descriptor.
Static factory function used by the descriptor creation system to instantiate new instances of this descriptor type.
| DtReal makVre::DtVreHumanMovementActuatorDescriptor::fatigueIncreaseRateLow | ( | ) | const |
Gets the fatigue increase rate for low-intensity activity.
Returns the rate at which fatigue increases during low-intensity activity. Units are fatigue points per second, with maximum fatigue being 100 points.
Referenced by setFatigueIncreaseRateLow().
| void makVre::DtVreHumanMovementActuatorDescriptor::setFatigueIncreaseRateLow | ( | DtReal | fatigueIncreaseRateLow | ) |
Sets the fatigue increase rate for low-intensity activity.
| fatigueIncreaseRateLow | The fatigue increase rate in fatigue points per second |
Sets the rate at which fatigue increases during low-intensity activity. Units are fatigue points per second, with maximum fatigue being 100 points.
References fatigueIncreaseRateLow().
| DtReal makVre::DtVreHumanMovementActuatorDescriptor::fatigueIncreaseRateMedium | ( | ) | const |
Gets the fatigue increase rate for medium-intensity activity.
Returns the rate at which fatigue increases during medium-intensity activity. Units are fatigue points per second, with maximum fatigue being 100 points.
Referenced by setFatigueIncreaseRateMedium().
| void makVre::DtVreHumanMovementActuatorDescriptor::setFatigueIncreaseRateMedium | ( | DtReal | fatigueIncreaseRateMedium | ) |
Sets the fatigue increase rate for medium-intensity activity.
| fatigueIncreaseRateMedium | The fatigue increase rate in fatigue points per second |
Sets the rate at which fatigue increases during medium-intensity activity. Units are fatigue points per second, with maximum fatigue being 100 points.
References fatigueIncreaseRateMedium().
| DtReal makVre::DtVreHumanMovementActuatorDescriptor::fatigueIncreaseRateHigh | ( | ) | const |
Gets the fatigue increase rate for high-intensity activity.
Returns the rate at which fatigue increases during high-intensity activity. Units are fatigue points per second, with maximum fatigue being 100 points.
Referenced by setFatigueIncreaseRateHigh().
| void makVre::DtVreHumanMovementActuatorDescriptor::setFatigueIncreaseRateHigh | ( | DtReal | fatigueIncreaseRateHigh | ) |
Sets the fatigue increase rate for high-intensity activity.
| fatigueIncreaseRateHigh | The fatigue increase rate in fatigue points per second |
Sets the rate at which fatigue increases during high-intensity activity. Units are fatigue points per second, with maximum fatigue being 100 points.
References fatigueIncreaseRateHigh().
| DtReal makVre::DtVreHumanMovementActuatorDescriptor::fatigueRecoveryRateLow | ( | ) | const |
Gets the fatigue recovery rate for low-intensity rest.
Returns the rate at which fatigue recovers during low-intensity rest periods. Units are fatigue points per second, with maximum fatigue being 100 points.
| void makVre::DtVreHumanMovementActuatorDescriptor::setFatigueRecoveryRateLow | ( | DtReal | fatigueRateLow | ) |
Sets the fatigue recovery rate for low-intensity rest.
| fatigueRateLow | The fatigue recovery rate in fatigue points per second |
Sets the rate at which fatigue recovers during low-intensity rest periods. Units are fatigue points per second, with maximum fatigue being 100 points.
| DtReal makVre::DtVreHumanMovementActuatorDescriptor::fatigueRecoveryRateMedium | ( | ) | const |
Gets the fatigue recovery rate for medium-intensity rest.
Returns the rate at which fatigue recovers during medium-intensity rest periods. Units are fatigue points per second, with maximum fatigue being 100 points.
| void makVre::DtVreHumanMovementActuatorDescriptor::setFatigueRecoveryRateMedium | ( | DtReal | fatigueRateMedium | ) |
Sets the fatigue recovery rate for medium-intensity rest.
| fatigueRateMedium | The fatigue recovery rate in fatigue points per second |
Sets the rate at which fatigue recovers during medium-intensity rest periods. Units are fatigue points per second, with maximum fatigue being 100 points.
| DtReal makVre::DtVreHumanMovementActuatorDescriptor::fatigueRecoveryRateHigh | ( | ) | const |
Gets the fatigue recovery rate for high-intensity rest.
Returns the rate at which fatigue recovers during high-intensity rest periods. Units are fatigue points per second, with maximum fatigue being 100 points.
| void makVre::DtVreHumanMovementActuatorDescriptor::setFatigueRecoveryRateHigh | ( | DtReal | fatigueRateHigh | ) |
Sets the fatigue recovery rate for high-intensity rest.
| fatigueRateHigh | The fatigue recovery rate in fatigue points per second |
Sets the rate at which fatigue recovers during high-intensity rest periods. Units are fatigue points per second, with maximum fatigue being 100 points.
| DtReal makVre::DtVreHumanMovementActuatorDescriptor::fatigueMaxForMovement | ( | ) | const |
Gets the maximum fatigue limit for movement capabilities.
Returns the maximum fatigue value that still allows movement. This prevents movement from completely stopping at maximum fatigue (100 points).
Referenced by setFatigueMaxForMovment().
| void makVre::DtVreHumanMovementActuatorDescriptor::setFatigueMaxForMovment | ( | DtReal | fatigueMaxForMovement | ) |
Sets the maximum fatigue limit for movement capabilities.
| fatigueMaxForMovement | The maximum fatigue points that still allow movement |
Sets the maximum fatigue value that still allows movement. This prevents movement from completely stopping at maximum fatigue (100 points).
References fatigueMaxForMovement().
| DtReal makVre::DtVreHumanMovementActuatorDescriptor::fatigueThresholdPercent | ( | ) | const |
Gets the fatigue threshold percentage.
Returns the speed threshold (as a percentage of the adjusted maximum speed) above which fatigue starts to accumulate. The adjusted maximum speed takes into account the effects of overall health and mobility health.
Referenced by setFatigueThresholdPercent().
| void makVre::DtVreHumanMovementActuatorDescriptor::setFatigueThresholdPercent | ( | DtReal | fatigueThresholdPercent | ) |
Sets the fatigue threshold percentage.
| fatigueThresholdPercent | The fatigue threshold as a percentage of maximum speed |
Sets the speed threshold (as a percentage of the adjusted maximum speed) above which fatigue starts to accumulate. The adjusted maximum speed takes into account the effects of overall health and mobility health.
References fatigueThresholdPercent().
|
protected |
Fatigue increase rate for low-intensity activity.
Rate at which fatigue increases during low-intensity activity. Units are fatigue points per second, with maximum fatigue being 100 points.
|
protected |
Fatigue increase rate for medium-intensity activity.
Rate at which fatigue increases during medium-intensity activity. Units are fatigue points per second, with maximum fatigue being 100 points.
|
protected |
Fatigue increase rate for high-intensity activity.
Rate at which fatigue increases during high-intensity activity. Units are fatigue points per second, with maximum fatigue being 100 points.
|
protected |
Fatigue recovery rate for low-intensity rest.
Rate at which fatigue recovers during low-intensity rest periods. Units are fatigue points per second, with maximum fatigue being 100 points.
|
protected |
Fatigue recovery rate for medium-intensity rest.
Rate at which fatigue recovers during medium-intensity rest periods. Units are fatigue points per second, with maximum fatigue being 100 points.
|
protected |
Fatigue recovery rate for high-intensity rest.
Rate at which fatigue recovers during high-intensity rest periods. Units are fatigue points per second, with maximum fatigue being 100 points.
|
protected |
Maximum fatigue limit for movement capabilities.
The maximum fatigue value that still allows movement. This prevents movement from completely stopping at maximum fatigue (100 points).
|
protected |
Fatigue threshold percentage.
The speed threshold (as a percentage of the adjusted maximum speed) above which fatigue starts to accumulate. The adjusted maximum speed takes into account the effects of overall health and mobility health.