SIMCONNECT_DATA_CAMERA
The SIMCONNECT_DATA_CAMERA structure is a response containing data on the current camera.
Syntax
SIMCONNECT_STRUCT SIMCONNECT_DATA_CAMERA
{
SIMCONNECT_DATA_XYZ Position;
SIMCONNECT_POSITION_REFERENTIAL PositionReferential;
DWORD PositionReferentialObjectId;
SIMCONNECT_DATA_XYZ TargetedPos;
SIMCONNECT_DATA_PBH Pbh;
SIMCONNECT_POSITION_REFERENTIAL RotationReferential;
DWORD RotationReferentialObjectId;
double Fov;
};
Members
| Member | Description |
|---|---|
Position |
The camera position expressed as a |
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. |
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 |
The camera pitch, bank, and heading, expressed as a SIMCONNECT_DATA_PBH struct. 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
This struct will be included in the SIMCONNECT_RECV_CAMERA_DATA struct as a response to to the SimConnect_CameraGet function.