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 position;
    FsPositionReferential positionReferential;
    FsSimObjId positionReferentialObjectId; 
    FsVec3d targetedPosition;
    FsPBH pbh;
    FsPositionReferential rotationReferential;
    FsSimObjId rotationReferentialObjectId; 
    double fov;
};

 

Members
Stuct Member Description
position A 3 value vector (x, y, z) defining the position of the camera. The units and values returned will depend of the selected positionReferential.
positionReferential

The reference used to define the position value. One of the following:

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

Ignored if is positionReferential set to World.

The object Id of the simobject that will be used to set position by SimObject, SimObject Datum and Eyepoint referential.

Set to 0 to focus user's aircraft. If the object Id is invalid, user's aircraft will be used instead.

targetedPosition 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.
rotationReferential

The reference used to define the pbh and targetedPosition values. One of the following:

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

Ignored if is rotationReferential set to World.

The object Id of the simobject that will be used to set rotation by SimObject, SimObject Datum and Eyepoint referential.

Set to 0 to focus user's aircraft. If the object Id is invalid, user's aircraft will be used instead.

fov The camera field of view, in radians.

 

Remarks

N/A

 

Related Topics

  1. WebAssembly
  2. Camera API

0/255