Class RotationAxisConstraint
Component for limiting the rotation axes for ObjectManipulator or BoundsControl
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class RotationAxisConstraint : TransformConstraint
Properties
ConstraintOnRotation
Constrain rotation about an axis
Declaration
public AxisFlags ConstraintOnRotation { get; set; }
Property Value
Type | Description |
---|---|
AxisFlags |
ConstraintType
Declaration
public override TransformFlags ConstraintType { get; }
Property Value
Type | Description |
---|---|
TransformFlags |
Overrides
UseLocalSpaceForConstraint
Gets or sets whether the constraints should be applied in local space of the object being manipulated or world space.
Declaration
public bool UseLocalSpaceForConstraint { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
ApplyConstraint(ref MixedRealityTransform)
Removes rotation about given axis if its flag is found in ConstraintOnRotation
Declaration
public override void ApplyConstraint(ref MixedRealityTransform transform)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityTransform | transform |