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
| Struct Member | Description |
|---|---|
position | A 3 value vector (x, y, z) defining the position of the camera. The units and values returned will depend on the selected positionReferential. |
positionReferential | The reference used to define the position value. One of the following:SimObject - The position is an offset from the simobject position (expressed in meters).SimObject Datum - The position is an offset from the simobject Datum Reference Point (expressed in meters).Eyepoint - The position is an offset from the aircraft pilot eyepoint (expressed in meters).World - The position is expressed using latitude, longitude, and altitude. |
positionReferentialObjectId | Ignored if positionReferential is 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 on 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:SimObject - The position is an offset from the simobject position (expressed in meters).SimObject Datum - The position is an offset from the simobject Datum Reference Point (expressed in meters).Eyepoint - The position is an offset from the aircraft pilot eyepoint (expressed in meters).World - The position is expressed using latitude, longitude, and altitude. |
rotationReferentialObjectId | Ignored if rotationReferential is 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
Prev
fsCameraAcquireNext
FsCameraDataMask