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
|
positionReferentialObjectId |
Ignored if is 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
|
rotationReferentialObjectId |
Ignored if is 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