FsCameraDataMask
This enum is used to create a bitmask for use with the fsCameraSet function, telling the simulation which camera struct members are being set.
Syntax
enum FsCameraDataMask : int
{
FS_CAMERA_DATA_MASK_NONE = 0,
FS_CAMERA_DATA_MASK_POSITION = 1 << 0,
FS_CAMERA_DATA_MASK_ROTATION = 1 << 1,
FS_CAMERA_DATA_MASK_TARGETED = 1 << 2,
FS_CAMERA_DATA_MASK_FOV = 1 << 3,
FS_CAMERA_DATA_MASK_ALL_ROTATION = FS_CAMERA_DATA_MASK_POSITION | FS_CAMERA_DATA_MASK_ROTATION | FS_CAMERA_DATA_MASK_FOV,
FS_CAMERA_DATA_MASK_ALL_TARGETED = FS_CAMERA_DATA_MASK_POSITION | FS_CAMERA_DATA_MASK_TARGETED | FS_CAMERA_DATA_MASK_FOV
};
Members
| Enum Member | Description |
|---|---|
FS_CAMERA_DATA_MASK_NONE |
No data mask is applied (not used). |
FS_CAMERA_DATA_MASK_POSITION |
The camera position flag (position is either in x/y/z/ meters or lat/lon/alt, depending on the referential used). |
FS_CAMERA_DATA_MASK_ROTATION |
The camera rotation flag (rotation is given as pitch/bank/heading in degrees). Note that if this is used then FS_CAMERA_DATA_MASK_TARGETED should not be used, otherwise FS_CAMERA_DATA_MASK_TARGETED takes priority and will overwrite the pitch/bank/heading values. |
FS_CAMERA_DATA_MASK_TARGETED |
The camera "target" position flag (target position is either in x/y/z/ meters or lat/lon/alt, depending on the referential used). The camera rotation will be calculated as the direction/orientation between the position and the target position. Note that if this is used then FS_CAMERA_DATA_MASK_ROTATION is not used, and any values given for this will override the pitch/bank/heading rotation values even if they are included. |
FS_CAMERA_DATA_MASK_FOV |
The camera field of view flag (the value used for FOV is radians). |
FS_CAMERA_DATA_MASK_ALL_ROTATION |
The "all parameters" flag using rotation to set the camera "look at" direction/orientation (ie: get/set all the above parameters, except FS_CAMERA_DATA_MASK_TARGETED). |
FS_CAMERA_DATA_MASK_ALL_TARGETED |
The "all parameters" flag using target position to set the camera "look at" direction/orientation (ie: get/set all the above parameters, except FS_CAMERA_DATA_MASK_ROTATION). |
Remarks
N/A
Related Topics
0/255