|
VR-Engage
2.3
|
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>
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 |
| makVre::DtVreRotaryWingMoveToController::DtVreRotaryWingMoveToController | ( | const DtString & | name, |
| DtLocalObject * | owner, | ||
| DtSimulationServices * | simManager, | ||
| DtComponentDescriptor * | desc = 0, | ||
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
|
overridevirtual |
|
overridevirtual |
|
static |
|
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).
|
private |
Resolves the world-space facing point from move-to facing state properties.
| worldFacingPoint | Output world-space point to face. |
Resolution order is: 1) MoveToFacingTargetObject (DtRwString UUID) - if valid/resolved, uses target object position. 2) MoveToFacingGeocentric (DtRwVector geocentric XYZ) - used as fallback.