oapiGetAirspeed

From OrbiterWiki
Revision as of 11:52, 7 January 2008 by Urwumpe (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns the true airspeed of the specified vessel w.r.t. the closest celestial body.

BOOL oapiGetAirspeed (
                     OBJHANDLE hVessel,
                     double *airspeed)

Parameters[edit]

hVessel
vessel handle
airspeed
pointer to the variable receiving the airspeed (m/s)

Return value[edit]

Returns FALSE if the call fails.

Notes[edit]

This function works even if the planet does not have an atmosphere. It returns the equivalent of airspeed.