Train Simulator NEXT
In This Topic
    AddAnchor function
    In This Topic

    This function assigns a new anchor.

    Syntax

    Copy Code
    int AddAnchor( dict Desc );

    Parameters

    Desc

    Type: dict

    The anchor description to add.

    Name Type Description
    Direction_x float The locale yaw-direction in radian.
    Direction_y float The locale pitch-direction 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 anchor index.

    Returns INT32_MAX if an internal error occurred.

    Remarks

    If the anchor exists, the behavior is nearby equal to SetAnchorDesc.

     

    See Also