Train Simulator NEXT
In This Topic
    SetAnchorDesc function
    In This Topic

    This function sets an anchor for all shapes.

    Syntax

    Copy Code
    bool SetAnchorDesc( dict Desc );

    Parameters

    Desc

    Type: dict

    The anchor description to set. The anchor is identified by name.

    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 true if the item was set, false if not.

    Remarks

    This function affects only this instance of the shape.

    See Also