fsMapViewSet3DCustomViewOrientationInRadians

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
Parameters Description
ctx A value of type FsContext provided as an argument of the gauge callback.
id The MapView render ID as returned by the function fsMapViewCreate.
dPitch The pitch value, in radians, clamped between 0 and 2\(pi\), relative to the aircraft orientation.
dBank The bank value, in radians, clamped between 0 and 2\(pi\), relative to the aircraft orientation.
dHeading The 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.

 

 

See Also