#include <Plane.h>
◆ Plane()
Create a new plane from two flight data objects.
◆ ~Plane()
Destructor cleans up all resources acquired.
◆ DetermineGndAlt()
Determine ground altitude of a given location.
◆ GetLift()
float Plane::GetLift |
( |
| ) |
const |
|
override |
Lift produced. Either given in wake.lift
or simple defaults apply.
◆ OncePerCycle()
void Plane::OncePerCycle |
( |
int |
_flCounter | ) |
|
|
staticprotected |
perform once-per-cycle activities
◆ ShallBeRemoved()
bool Plane::ShallBeRemoved |
( |
const tsTy & |
cutOff | ) |
const |
Determines if this plane shall be removed, sets bToBeRemoved
if so.
Reasons for removal:
- no updates for too long
- too far away from camera
◆ TakeOverData()
Prepare given position for usage after taking over from passed-in smart pointer.
- Parameters
-
bFrom | Store into from variables? Otherwise into to |
source | From where to take over the data |
◆ UpdateFromFlightData()
Regularly called to update from/to positions from the list of available flight data.
◆ UpdatePosition()
void Plane::UpdatePosition |
( |
float |
_elapsedSinceLastCall, |
|
|
int |
_flCounter |
|
) |
| |
|
override |
Called by XPMP2 right before updating the aircraft's placement in the world.
◆ diFrom
XPLMDrawInfo_t Plane::diFrom |
|
protected |
the from-position in XP speak
◆ diTo
XPLMDrawInfo_t Plane::diTo |
|
protected |
the to-position in XP speak
The factor: increases from 0 to 1 while now
is between from
and to
(->interpolation), and becomes larger than 1 if now
increases even beyond to
(-> extrapolation)
◆ fdFrom
the from-position for interpolation
◆ fdTo
the to-position for interpolation
◆ flCounter
int Plane::flCounter = -1 |
|
staticprotected |
flight loop counter of last update
◆ ticksNow
tsTy::rep Plane::ticksNow = 0 |
|
staticprotected |
'now' timestamp
'now' timestamp in ticks since epoch
◆ tTouchDown
float Plane::tTouchDown = NAN |
|
protected |
The documentation for this class was generated from the following files: