FixedRotationToWorldConstraint 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.
Component for fixing the rotation of a manipulated object relative to the world.
public class FixedRotationToWorldConstraint : MixedReality.Toolkit.SpatialManipulation.TransformConstraint
type FixedRotationToWorldConstraint = class
inherit TransformConstraint
Public Class FixedRotationToWorldConstraint
Inherits TransformConstraint
- Inheritance
Remarks
MRTK's constraint system might be redesigned in the near future. When this occurs, the old constraint components will be deprecated.
Constructors
| Name | Description |
|---|---|
| FixedRotationToWorldConstraint() | |
Fields
| Name | Description |
|---|---|
| InitialWorldPose |
The initial world pose before any manipulations. (Inherited from TransformConstraint) |
| WorldPoseOnManipulationStart |
The world pose of the object when the manipulation began. (Inherited from TransformConstraint) |
Properties
| Name | Description |
|---|---|
| ConstraintType |
Get flags that describe the type of transformations this constraint applies to. |
| ExecutionPriority |
Execution order priority of this constraint. Lower numbers will be executed before higher numbers. (Inherited from TransformConstraint) |
| HandType |
Whether this constraint applies to one hand manipulation, two hand manipulation or both (Inherited from TransformConstraint) |
| ProximityType |
Whether this constraint applies to near manipulation, far manipulation or both (Inherited from TransformConstraint) |
Methods
| Name | Description |
|---|---|
| ApplyConstraint(MixedRealityTransform) |
Fix rotation to the rotation from manipulation start |
| OnDisable() |
A Unity event function that is called when the script component has been disabled. (Inherited from TransformConstraint) |
| OnEnable() |
A Unity event function that is called when the script component has been enabled. (Inherited from TransformConstraint) |
| OnManipulationStarted(MixedRealityTransform) |
Called when manipulation starts on the attached object. (Inherited from TransformConstraint) |
| Setup(MixedRealityTransform) |
Called once before any constraints are computed. (Inherited from TransformConstraint) |