VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::DtVreRotaryWingMoveToController Class Reference

Detailed Description

This class derives from DtRotaryWingMoveToControllerComponent to include a target facing behavior during move-to motion. The base move-to controller doesn't include heading specification during move-to-location tasks.

#include <vreRotaryWingMoveToController.h>

Inheritance diagram for makVre::DtVreRotaryWingMoveToController:
[legend]

Public Member Functions

 DtVreRotaryWingMoveToController (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 
virtual ~DtVreRotaryWingMoveToController () override
 
virtual const char * type () const override
 
- Public Member Functions inherited from makVre::DtVreSimComponent< DtRotaryWingMoveToControllerComponent >
 DtVreSimComponent (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 
virtual ~DtVreSimComponent ()
 
bool isPlayerControlled (const std::string &role="") const
 
std::vector< std::string > controllingStations (const std::string &role) const
 
std::vector< std::string > engagedRoles () 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 pilotProperties () override
 

Private Member Functions

bool resolveFacingPointWorld (DtVector &worldFacingPoint) const
 

Constructor & Destructor Documentation

◆ DtVreRotaryWingMoveToController()

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

◆ ~DtVreRotaryWingMoveToController()

virtual makVre::DtVreRotaryWingMoveToController::~DtVreRotaryWingMoveToController ( )
overridevirtual

Member Function Documentation

◆ type()

virtual const char * makVre::DtVreRotaryWingMoveToController::type ( ) const
overridevirtual

◆ creator()

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

◆ pilotProperties()

virtual void makVre::DtVreRotaryWingMoveToController::pilotProperties ( )
overrideprotectedvirtual

Overrides base function to apply facing-target heading.

The base move-to controller computes translational guidance and may leave heading to default behavior. This override runs after base guidance, resolves the active facing target from state properties, and forces desired heading/selector so move-to-location can maintain orientation toward that target (object target has priority over geocentric target).

◆ resolveFacingPointWorld()

bool makVre::DtVreRotaryWingMoveToController::resolveFacingPointWorld ( DtVector & worldFacingPoint) const
private

Resolves the world-space facing point from move-to facing state properties.

Parameters
worldFacingPointOutput world-space point to face.
Returns
True if a usable facing point was resolved, false otherwise.

Resolution order is: 1) MoveToFacingTargetObject (DtRwString UUID) - if valid/resolved, uses target object position. 2) MoveToFacingGeocentric (DtRwVector geocentric XYZ) - used as fallback.


The documentation for this class was generated from the following file: