FsCameraData

This struct is used to send or receive data about the add-on camera using the fsCameraSet and fsCameraGet functions.

 

Syntax
struct FsCameraData
{
    FsVec3d Pos;
    FsVec3d TargetedPos;
    FsPBH   Pbh;
    double  fov;
    int referential;
};

 

Members
Stuct Member Description
Pos A 3 value vector (x, y, z) defining the position of the camera. The units and values returned will depend of the selected referential.
TargetedPos A 3 value vector (x, y, z) defining the "target" position for the camera. This is used to define a "look at" point for the camera direction/orientation. The units and values returned will depend of the selected referential. Note that if you set a target position, it will override any values given for Pbh.
Pbh A 3 value vector (p, b, h) defining the camera pitch, bank, and heading, in degrees. Note when setting values, if TargetedPos is set, it will override the values given here.
fov The camera field of view, in radians.
referential

The reference used to define the pos and TargetedPos values. One of the following:

  1. Aircraft - The position is an offset from the aircraft Datum Reference Point (expressed in meters).
  2. Eyepoint - The position is an offset from the aircraft pilot eyepoint (expressed in meters).
  3. World - The position is expressed using latitude, longitude, and altitude.

 

Remarks

N/A

 

Related Topics

  1. WebAssembly
  2. Camera API

0/255