This function can be used to set a custom view orientation for the MapView camera when in 3D mode.

 

 

Syntax
bool fsMapViewSet3DCustomViewOrientationInRadians(
    FsContext ctx,
    FsTextureId id,
    double dPitch,
    double dBank,
    double dHeading
    )

 

Members
ParametersDescription
ctxA value of type FsContext provided as an argument of the gauge callback.
idThe MapView render ID as returned by the function fsMapViewCreate.
dPitchThe pitch value, in radians, clamped between 0 and 2\(pi\), relative to the aircraft orientation.
dBankThe bank value, in radians, clamped between 0 and 2\(pi\), relative to the aircraft orientation.
dHeadingThe headingvalue, in radians, clamped between 0 and 2\(pi\), relative to the aircraft orientation.

 

Return Values

Returns false if:

  • no texture matches the given MapView ID
  • the ctx is invalid

Otherwise it will return true.

 

Remarks

This function is only valid when fsMapViewSet3D is set to true (ie: 3D is enabled), and when the view orientation has been set to use a custom camera using fsMapViewSet3DViewOrientation.