holoride
Search Results for

    Show / Hide Table of Contents

    Class WorldShiftManager

    This class moves all transforms generated by the ElasticSceneGenerator, under any listed Holoride.ElasticSDK.WorldShiftManager.ShiftParents as well as the Player towards the center of the coordinate system.

    This shift is mandatory to prevent floating point inaccuracies when moving along real world localization data that is mapped to engine units.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    WorldShiftManager
    Namespace: Holoride.ElasticSDK
    Assembly: Holoride.ElasticSDK.Runtime.dll
    Syntax
    [DisallowMultipleComponent]
    [HelpURL("http://localhost:8080/api/Holoride.ElasticSDK.WorldShiftManager.html")]
    public class WorldShiftManager : MonoBehaviour

    Fields

    OnOriginShift

    The event which is called when a shift has been performed.

    Declaration
    public WorldShiftManager.OriginShiftEvent OnOriginShift
    Field Value
    Type Description
    WorldShiftManager.OriginShiftEvent

    Methods

    AddPipelineContainer(IPipelineContainer)

    Registers a pipeline container with this shift manager. IShiftParent workers of pipelines of registered containers will be shifted.

    Declaration
    public void AddPipelineContainer(IPipelineContainer container)
    Parameters
    Type Name Description
    IPipelineContainer container

    The pipeline container to register.

    AddShiftParent(Transform)

    Adds a single shift parent. Child transforms of the registered transform will be shifted.

    Declaration
    public void AddShiftParent(Transform parent)
    Parameters
    Type Name Description
    Transform parent

    The parent transform to register.

    AddShiftParents(IEnumerable<Transform>)

    Adds a list of shift parents. Child transforms of the registered transforms will be shifted.

    Declaration
    public void AddShiftParents(IEnumerable<Transform> parents)
    Parameters
    Type Name Description
    IEnumerable<Transform> parents

    The list of parent transforms to register.

    RemovePipelineContainer(IPipelineContainer)

    Removes a pipeline container previously registered using AddPipelineContainer(IPipelineContainer).

    Declaration
    public void RemovePipelineContainer(IPipelineContainer container)
    Parameters
    Type Name Description
    IPipelineContainer container

    The pipeline container to unregister.

    RemoveShiftParent(Transform)

    Removes a single shift parent previously registered using AddShiftParents(IEnumerable<Transform>) or AddShiftParent(Transform).

    Declaration
    public void RemoveShiftParent(Transform parent)
    Parameters
    Type Name Description
    Transform parent

    The parent transform to unregister.

    RemoveShiftParents(IEnumerable<Transform>)

    Removes a list of shift parents previously registered using AddShiftParents(IEnumerable<Transform>) or AddShiftParent(Transform). If called without specified parameter, all shift parents are cleared.

    Declaration
    public void RemoveShiftParents(IEnumerable<Transform> parents = null)
    Parameters
    Type Name Description
    IEnumerable<Transform> parents

    The list of parent transforms to unregister.

    In This Article

    Back to top
    ©   holoride
    Privacy   Imprint