Train Simulator NEXT
In This Topic
    SetCameraDesc function
    In This Topic

    This function sets a camera.

    Syntax

    Copy Code
    bool SetCameraDesc( dict Desc );

    Parameters

    Desc

    Type: dict

    The camera description to set. All properties are optional, except 'Name'.

    Name Type Description
    Depth float The view depth in meter.
    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 float The field of view 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 true if the item was set, false if not.

    Remarks

    The camera is identified by the 'Name' property of the 'Desc' argument.

    This function affects only this instance of the shape.

    See Also