DtVreRotaryWingActuatorComponent extends the base rotary wing actuator to provide VR-Engage specific functionality, particularly for collision detection and crash handling. It includes improved logic for determining landing versus crash states and configurable options for generating detonation events on crash.
#include <vreRotaryWingActuator.h>
|
| static DtSimComponent * | creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| |
◆ DtVreRotaryWingActuatorComponent()
| makVre::DtVreRotaryWingActuatorComponent::DtVreRotaryWingActuatorComponent |
( |
const DtString & | name, |
|
|
DtLocalObject * | owner, |
|
|
DtSimulationServices * | simManager, |
|
|
DtComponentDescriptor * | desc = 0, |
|
|
DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor.
- Parameters
-
| name | The name of this component |
| owner | The local object that owns this component |
| simManager | The simulation services manager |
| desc | Component descriptor with configuration parameters |
| parentRegistry | Optional parent registry for reader/writer functionality |
Creates a new rotary wing actuator component with the specified parameters.
◆ ~DtVreRotaryWingActuatorComponent()
| virtual makVre::DtVreRotaryWingActuatorComponent::~DtVreRotaryWingActuatorComponent |
( |
| ) |
|
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the rotary wing actuator component, removing process state from the process state manager before deleting it.
◆ type()
| virtual const char * makVre::DtVreRotaryWingActuatorComponent::type |
( |
| ) |
const |
|
overridevirtual |
Gets the type identifier for this component.
- Returns
- String identifying the component type (DtVreRotaryWingActuatorType)
Implements the DtSimComponent::type() method to return the type identifier for this component.
Reimplemented in RlCgfVrf::DtVreRlActuator.
◆ creator()
| static DtSimComponent * makVre::DtVreRotaryWingActuatorComponent::creator |
( |
const DtString & | name, |
|
|
DtLocalObject * | owner, |
|
|
DtSimulationServices * | simManager, |
|
|
DtComponentDescriptor * | desc = 0, |
|
|
DtReaderWriterRegistry * | parentRegistry = 0 ) |
|
static |
Factory method to create a new instance of this component.
- Parameters
-
| name | The name for the new component |
| owner | The local object that will own this component |
| simManager | The simulation services manager |
| desc | Optional component descriptor |
| parentRegistry | Optional parent registry for reader/writer functionality |
- Returns
- Pointer to the newly created component
Static factory method used by the component creation system to instantiate new instances of this component type.
◆ sendDetonation()
| virtual void makVre::DtVreRotaryWingActuatorComponent::sendDetonation |
( |
const DtVector & | geocentricLocation | ) |
|
|
overrideprotectedvirtual |
Sends a detonation event at the crash location if configured.
- Parameters
-
| geocentricLocation | The geocentric coordinates of the crash location |
Checks the component descriptor to determine whether a detonation event should be generated when the aircraft crashes. If enabled, creates and sends a detonation event at the specified location, which can generate visual effects and damage to nearby entities.
◆ checkLandedOrCrashed()
| virtual void makVre::DtVreRotaryWingActuatorComponent::checkLandedOrCrashed |
( |
| ) |
|
|
overrideprotectedvirtual |
Determines if the aircraft has landed or crashed.
Overridden to perform the landed check before determining if a crash has occurred. This prevents false positives where normal landings are incorrectly classified as crashes, fixing an issue with frequent crash events occurring during standard landing procedures.
The documentation for this class was generated from the following file: