This function assigns a new camera.
Copy Code | |
---|---|
int AddCamera( dict Desc ); |
Desc
Type: dict
The camera description to add.
Name | Type | Description |
---|---|---|
Depth | float | The maximum view depth. |
Direction_Yaw | float | The locale yaw-direction in radian. |
Direction_Pitch | float | The locale pitch-direction in radian. |
Direction_Roll | float | The locale roll-direction in radian. |
FieldOfView | flaot | The field of view of the camera in radian. |
Name | string | The name of the anchor. |
Position_x | float | The locale position on x-axis. |
Position_y | float | The locale position on y-axis. |
Position_z | float | The locale position on z-axis. |
Returns the camera index.
Returns INT32_MAX if an internal error occurred.
If the camera exists, the behavior is nearby equal to SetCameraDesc.