![]() |
VR-Forces 4.0.4 Class Documentation
|
DtFallingFromSkyActuatorComponent provides a simple, kinematics-based model for air motion based on throttle, stick, and pedal inputs. More...

Public Member Functions | |
| DtFallingFromSkyActuatorComponent (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
| virtual | ~DtFallingFromSkyActuatorComponent () |
| destructor Removes process state from process state manager before deleting it. | |
| virtual bool | init () |
| to get access to the entity's localStateRepository, which this component will update, and then connect to the controller's ports. | |
| virtual DtString | type () const |
| Returns a string identifies the class type of component. | |
| virtual void | tick () |
| Calls either doFlying or doTaxiing, based on a onGround() call to myFallingFromSkyEntityState. | |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
Protected Member Functions | |
| virtual void | calculateOrientation (const DtDcm &oldLocalOrientation, const DtVector &newBodyRotationRates, DtDcm &newLocalOrientation) |
| Uses current local orientation, rotationRates in SR, and dT. | |
| virtual void | fallFromSky () |
| Causes the entity to fall from the sky. | |
| void | integrate (const DtVector &oldLocalPosition, const DtVector &oldRelativeVelocity, const DtVector &newRelativeAcceleration, DtVector &newLocalPosition, DtVector &newRelativeVelocity) |
| Integrates myRelativeVelocity and myLocalPosition. | |
| virtual void | updateRepository (const DtVector &newLocalPosition, const DtVector &newRelativeVelocity, const DtVector &newRelativeAcceleration, const DtDcm &newLocalOrientation, const DtVector &newBodyRotationRates, bool isOnGround) |
| DtFallingFromSkyActuatorComponent () | |
| default constructor; not implemented | |
| DtFallingFromSkyActuatorComponent (const DtFallingFromSkyActuatorComponent &orig) | |
| copy constructor; not implemented | |
| const DtFallingFromSkyActuatorComponent & | operator= (const DtFallingFromSkyActuatorComponent &orig) |
| assignment operator; not implemented | |
Protected Attributes | |
| DtVrfMovingObjectStateRepository * | myState |
| DtFallingFromSkyActuatorDescriptor * | myFallingFromSkyActuatorDescriptor |
| bool | myFirstTick |
DtFallingFromSkyActuatorComponent provides a simple, kinematics-based model for air motion based on throttle, stick, and pedal inputs.
End User Description: DtFallingFromSkyActuatorComponent is based on the original DtFallingFromSkyActuatorComponent, but instead of stick and pedal control values causing changes in rotational acceleration, in this simplified model they effect changes in rotational velocity instead. So 0 x/y stick and 0 pedal will result in no rotation of the airframe.
Uses Descriptor Type: DtComponentDescriptor
| DtFallingFromSkyActuatorComponent::DtFallingFromSkyActuatorComponent | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual DtFallingFromSkyActuatorComponent::~DtFallingFromSkyActuatorComponent | ( | ) | [virtual] |
destructor Removes process state from process state manager before deleting it.
default constructor; not implemented
| DtFallingFromSkyActuatorComponent::DtFallingFromSkyActuatorComponent | ( | const DtFallingFromSkyActuatorComponent & | orig | ) | [protected] |
copy constructor; not implemented
| virtual bool DtFallingFromSkyActuatorComponent::init | ( | ) | [virtual] |
to get access to the entity's localStateRepository, which this component will update, and then connect to the controller's ports.
Reimplemented from DtActuatorComponent.
| virtual DtString DtFallingFromSkyActuatorComponent::type | ( | ) | const [virtual] |
Returns a string identifies the class type of component.
Type values are defined in compTypes.h. DtSimComponent creation functions are registered with the DtSimComponentFactory using the type values as the key.
Reimplemented from DtSimComponent.
| virtual void DtFallingFromSkyActuatorComponent::tick | ( | ) | [virtual] |
Calls either doFlying or doTaxiing, based on a onGround() call to myFallingFromSkyEntityState.
Reimplemented from DtSimComponent.
| static DtSimComponent* DtFallingFromSkyActuatorComponent::creator | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | [static] |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual void DtFallingFromSkyActuatorComponent::calculateOrientation | ( | const DtDcm & | oldLocalOrientation, |
| const DtVector & | newBodyRotationRates, | ||
| DtDcm & | newLocalOrientation | ||
| ) | [protected, virtual] |
Uses current local orientation, rotationRates in SR, and dT.
Results placed in object pointed to by orientation argument.
| virtual void DtFallingFromSkyActuatorComponent::fallFromSky | ( | ) | [protected, virtual] |
Causes the entity to fall from the sky.
Takes into account drag coeffiecent from descripto
| void DtFallingFromSkyActuatorComponent::integrate | ( | const DtVector & | oldLocalPosition, |
| const DtVector & | oldRelativeVelocity, | ||
| const DtVector & | newRelativeAcceleration, | ||
| DtVector & | newLocalPosition, | ||
| DtVector & | newRelativeVelocity | ||
| ) | [protected] |
Integrates myRelativeVelocity and myLocalPosition.
| virtual void DtFallingFromSkyActuatorComponent::updateRepository | ( | const DtVector & | newLocalPosition, |
| const DtVector & | newRelativeVelocity, | ||
| const DtVector & | newRelativeAcceleration, | ||
| const DtDcm & | newLocalOrientation, | ||
| const DtVector & | newBodyRotationRates, | ||
| bool | isOnGround | ||
| ) | [protected, virtual] |
| const DtFallingFromSkyActuatorComponent& DtFallingFromSkyActuatorComponent::operator= | ( | const DtFallingFromSkyActuatorComponent & | orig | ) | [protected] |
assignment operator; not implemented
DtFallingFromSkyActuatorDescriptor* DtFallingFromSkyActuatorComponent::myFallingFromSkyActuatorDescriptor [protected] |
bool DtFallingFromSkyActuatorComponent::myFirstTick [protected] |