ManipulationLogic<T> 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.
Abstract class defining all logics that define the logic by which an object is manipulated by a ObjectManipulator object.
public abstract class ManipulationLogic<T>
type ManipulationLogic<'T> = class
Public MustInherit Class ManipulationLogic(Of T)
Type Parameters
- T
- Inheritance
-
ManipulationLogic<T>
- Derived
Remarks
When a manipulation starts, call Setup(List<IXRSelectInteractor>, IXRSelectInteractable, MixedRealityTransform). Then call Update(List<IXRSelectInteractor>, IXRSelectInteractable, MixedRealityTransform, Boolean) any time to update the move logic and get a new target value for the object.
Constructors
| Name | Description |
|---|---|
| ManipulationLogic<T>() | |
Properties
| Name | Description |
|---|---|
| ForceGrabbed |
Whether the object is force grabbed by a singular UnityEngine.XR.Interaction.Toolkit.XRRayInteractor. |
| NumInteractors |
The number of UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor objects currently selecting this object. |
| SelectedBySocket |
Whether the object is selected by a singular UnityEngine.XR.Interaction.Toolkit.XRSocketInteractor. |
Methods
| Name | Description |
|---|---|
| Setup(List<IXRSelectInteractor>, IXRSelectInteractable, MixedRealityTransform) |
Setup the manipulation logic. Called automatically by Update if the number of interactor points has changed. |
| Update(List<IXRSelectInteractor>, IXRSelectInteractable, MixedRealityTransform, Boolean) |
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. |