|
VR-Engage
2.2
|
This class defines a descriptor for the human joystick movement controller component, which enables human entity movement via joystick input devices. It provides configuration for mapping joystick axes to character movement controls, such as turning rate and forward/backward motion, to create realistic humanoid locomotion in VREngage simulations.
#include <humanJoystickMovementControllerDescriptor.h>
Public Member Functions | |
| DtHumanJoystickMovementControllerDescriptor (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtHumanJoystickMovementControllerDescriptor (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| virtual | ~DtHumanJoystickMovementControllerDescriptor () override |
| DtHumanJoystickMovementControllerDescriptor (const DtHumanJoystickMovementControllerDescriptor &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtHumanJoystickMovementControllerDescriptor & | operator= (const DtHumanJoystickMovementControllerDescriptor &orig) |
| virtual DtComponentDescriptor * | clone (DtReaderWriterRegistry *parentRegistry=NULL) const override |
| virtual DtString | type () const override |
| virtual void | setMaxTurningRate (double rate) |
| virtual double | maxTurningRate () const |
Static Public Member Functions | |
| static DtComponentDescriptor * | creator () |
Protected Member Functions | |
| DtHumanJoystickMovementControllerDescriptor () | |
Protected Attributes | |
Configuration Parameters | |
These parameters are available for setting in the OPD files. | |
| DtRwReal | myMaxTurningRate |
| makVre::DtHumanJoystickMovementControllerDescriptor::DtHumanJoystickMovementControllerDescriptor | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL ) |
Constructor with component name.
| name | The name of this component |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new human joystick movement controller descriptor with the specified name.
Referenced by DtHumanJoystickMovementControllerDescriptor(), and operator=().
| makVre::DtHumanJoystickMovementControllerDescriptor::DtHumanJoystickMovementControllerDescriptor | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL ) |
Constructor with component name as symbol string.
| name | The name of this component as a symbol string |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new human joystick movement controller descriptor with the specified name.
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the descriptor.
| makVre::DtHumanJoystickMovementControllerDescriptor::DtHumanJoystickMovementControllerDescriptor | ( | const DtHumanJoystickMovementControllerDescriptor & | orig, |
| DtReaderWriterRegistry * | parentRegistry = NULL ) |
Copy constructor.
| orig | The source descriptor to copy from |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new human joystick movement controller descriptor as a copy of the provided original.
References DtHumanJoystickMovementControllerDescriptor().
|
protected |
Default constructor (not implemented)
Default constructor is protected and not implemented to prevent creation of instances without proper initialization.
| DtHumanJoystickMovementControllerDescriptor & makVre::DtHumanJoystickMovementControllerDescriptor::operator= | ( | const DtHumanJoystickMovementControllerDescriptor & | orig | ) |
Assignment operator.
| orig | The source descriptor to copy from |
Assigns the contents of the provided descriptor to this one.
References DtHumanJoystickMovementControllerDescriptor().
|
overridevirtual |
Creates a clone of this descriptor.
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new human joystick movement controller descriptor as a deep copy of this one.
Reimplemented in makVre::DtVreHumanJoystickMovementControllerDescriptor.
|
overridevirtual |
Gets the type identifier for this descriptor.
Returns a unique type identifier string for this descriptor type. Used for creating descriptors from MTL files.
Reimplemented in makVre::DtVreHumanJoystickMovementControllerDescriptor.
|
virtual |
Sets the maximum turning rate.
| rate | The maximum turning rate in radians per second |
Sets the maximum rate at which the human entity can turn when controlled by a joystick.
|
virtual |
Gets the maximum turning rate.
Returns the maximum rate at which the human entity can turn when controlled by a joystick.
|
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.
|
protected |
Maximum turning rate for the human entity.
Defines the maximum rate at which the human entity can turn when controlled by a joystick. Higher values allow for faster turning, while lower values result in more gradual turns.
Default value: 3.14 (approximately PI) Units: radians/second