VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtVreRotaryWingActuatorComponent Class Reference

Detailed Description

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>

Inheritance diagram for makVre::DtVreRotaryWingActuatorComponent:
[legend]

Public Member Functions

 DtVreRotaryWingActuatorComponent (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 
virtual ~DtVreRotaryWingActuatorComponent () override
 
virtual const char * type () const override
 
- Public Member Functions inherited from makVre::DtVreSimComponent< DtRotaryWingActuatorComponent >
 DtVreSimComponent (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 
virtual ~DtVreSimComponent ()
 
bool isPlayerControlled (const std::string &role="") const
 
DtString entitySystemName () const
 

Static Public Member Functions

static DtSimComponent * creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 

Protected Member Functions

virtual void sendDetonation (const DtVector &geocentricLocation) override
 
virtual void checkLandedOrCrashed () override
 

Constructor & Destructor Documentation

◆ DtVreRotaryWingActuatorComponent()

makVre::DtVreRotaryWingActuatorComponent::DtVreRotaryWingActuatorComponent ( const DtString & name,
DtLocalObject * owner,
DtSimulationServices * simManager,
DtComponentDescriptor * desc = 0,
DtReaderWriterRegistry * parentRegistry = 0 )

Constructor.

Parameters
nameThe name of this component
ownerThe local object that owns this component
simManagerThe simulation services manager
descComponent descriptor with configuration parameters
parentRegistryOptional 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.

Member Function Documentation

◆ 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
nameThe name for the new component
ownerThe local object that will own this component
simManagerThe simulation services manager
descOptional component descriptor
parentRegistryOptional 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
geocentricLocationThe 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: