holoride
Search Results for

    Show / Hide Table of Contents

    Class RouteTraveller

    Controls the movement of the GameObject along the route.

    Inheritance
    object
    RouteTraveller
    Namespace: Holoride.ElasticSDK
    Assembly: Holoride.ElasticSDK.Runtime.dll
    Syntax
    public class RouteTraveller : MonoBehaviour

    Fields

    Distance

    Distance on the spline where the GameObject is currently located.

    Declaration
    public double Distance
    Field Value
    Type Description
    double

    GameObject

    The GameObject to travel along the route.

    Declaration
    public GameObject GameObject
    Field Value
    Type Description
    GameObject

    MoveGameObject

    States whether to travel or to pause.

    Declaration
    public bool MoveGameObject
    Field Value
    Type Description
    bool

    Offset

    Offset for the GameObject relative to its path on the spline.

    Declaration
    public Vector3 Offset
    Field Value
    Type Description
    Vector3

    Route

    The Route to travel along.

    Declaration
    public Route Route
    Field Value
    Type Description
    Holoride.ElasticSDK.Route

    SnapTo

    States whether to snap the travelling object to the ground.

    Declaration
    public LayerMask SnapTo
    Field Value
    Type Description
    LayerMask

    Speed

    The GameObject's travelling speed in meters per second.

    Declaration
    public float Speed
    Field Value
    Type Description
    float

    Methods

    OnEnable()

    Implements the OnEnable method of the MonoBehaviour life-cycle. Initializes the GameObject flight.

    Declaration
    public void OnEnable()

    Update()

    Implements the Update method of the MonoBehaviour life-cycle.

    Declaration
    public void Update()
    In This Article

    Back to top
    ©   holoride
    Privacy   Imprint