RotateLogic Class
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.
Implements common logic for rotating holograms with direct interaction. Will either perform a direct rotation from a single interactor, or will form a "handlebar" between two interactors for two-handed rotations.
Usage: When a manipulation starts, call Setup. Call Update any time to update the move logic and get a new rotation for the object.
public class RotateLogic : MixedReality.Toolkit.SpatialManipulation.ManipulationLogic<UnityEngine.Quaternion>
type RotateLogic = class
inherit ManipulationLogic<Quaternion>
Public Class RotateLogic
Inherits ManipulationLogic(Of Quaternion)
- Inheritance
Force |
Whether the object is force grabbed by a singular UnityEngine.XR.Interaction.Toolkit.XRRayInteractor. (Inherited from ManipulationLogic<T>) |
Num |
The number of UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor objects currently selecting this object. (Inherited from ManipulationLogic<T>) |
Selected |
Whether the object is selected by a singular UnityEngine.XR.Interaction.Toolkit.XRSocketInteractor. (Inherited from ManipulationLogic<T>) |
Setup(List<IXRSelect |
Setup the manipulation logic. Called automatically by Update if the number of interactor points has changed. |
Update(List<IXRSelect |
Calculate the new manipulation result, of type T, based on input. If the number of interactor points is different than the last time Update was called, Setup will be called automatically to re-initialize the manipulation. |
Táirge | Leaganacha |
---|---|
MRTK3 Spatial Manipulation | 3.0, 3.1, 3.2 |