Orienter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.MonoBehaviourOrienter
- 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) |