Share via


Orienter Class

Definition

The Orienter class implements IOrienter.

public class Orienter : UnityEngine.MonoBehaviour, Microsoft.MixedReality.WorldLocking.Core.IOrienter
type Orienter = class
    inherit MonoBehaviour
    interface IOrienter
Public Class Orienter
Inherits MonoBehaviour
Implements IOrienter
Inheritance
UnityEngine.MonoBehaviour
Orienter
Derived
Implements

Remarks

It derives from MonoBehaviour only to facilitate assigning it in the Inspector. Alternatively, it could be implemented as a singleton service. There are pros and cons in either direction. The MonoBehaviour assigned in inspector was chosen to make explicit the dependency, rather than a dependency hidden by a static get internally.

Constructors

Orienter()

Fields

actives

Orientables in the currently processing fragment.

Properties

AlignmentManager

Methods

AverageRotation(Orienter+WeightedRotation, Orienter+WeightedRotation)

Compute a new weighted rotation representing the two input weighted rotations.

ComputeRotation(IOrientable, IOrientable)

Compute the rotation that aligns a and b correctly in pinned space.

ComputeRotations()

Compute rotations by pairs, weighting by distance and averaging for each orientable.

Register(IOrientable)
Reorient(FragmentId, IAlignmentManager)
Unregister(IOrientable)

Applies to