Train Simulator NEXT
In This Topic
    AddCamera function
    In This Topic

    This function assigns a new camera.

    Syntax

    Copy Code
    int AddCamera( dict Desc );

    Parameters

    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.

    Return

    Returns the camera index.

    Returns INT32_MAX if an internal error occurred.

    Remarks

    If the camera exists, the behavior is nearby equal to SetCameraDesc.

    See Also