holoride
Search Results for

    Show / Hide Table of Contents

    Class RoadLink

    A connection between a road and a junction.

    Inheritance
    object
    RoadLink
    Namespace: Holoride.ElasticSDK.Overpass
    Assembly: Holoride.ElasticSDK.Library.Runtime.dll
    Syntax
    public class RoadLink

    Fields

    Junction

    Gets the junction this link connects.

    Declaration
    public Junction Junction
    Field Value
    Type Description
    Junction

    Pool

    Declaration
    public static readonly ObjectPool<RoadLink> Pool
    Field Value
    Type Description
    ObjectPool<RoadLink>

    Road

    Gets the road this link connects.

    Declaration
    public Road Road
    Field Value
    Type Description
    Road

    Width

    Gets the road width at this link.

    Declaration
    public float Width
    Field Value
    Type Description
    float

    Properties

    ExitDirection

    Gets the direction in which the road leaves the junction.

    Declaration
    public Vector2 ExitDirection { get; }
    Property Value
    Type Description
    Vector2

    IsAtStart

    Gets a value indicating whether the road link is at the start of the road. If not, it's at the end.

    Declaration
    public bool IsAtStart { get; }
    Property Value
    Type Description
    bool

    Methods

    CreatePooled(Road, Junction)

    Declaration
    public static RoadLink CreatePooled(Road road, Junction junction)
    Parameters
    Type Name Description
    Road road
    Junction junction
    Returns
    Type Description
    RoadLink

    Initialize(Road, Junction)

    Constructs a RoadLink object.

    Declaration
    public void Initialize(Road road, Junction junction)
    Parameters
    Type Name Description
    Road road

    The Road to link to a Junction.

    Junction junction

    The Junction the Road is linked to.

    In This Article

    Back to top
    ©   holoride
    Privacy   Imprint