mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class MoveAxisConstraint

    Component for limiting the translation axes for ObjectManipulator or BoundsControl

    Inheritance
    Object
    TransformConstraint
    MoveAxisConstraint
    Inherited Members
    TransformConstraint.TargetTransform
    TransformConstraint.HandType
    TransformConstraint.ProximityType
    TransformConstraint.worldPoseOnManipulationStart
    TransformConstraint.Start()
    TransformConstraint.Initialize(MixedRealityPose)
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class MoveAxisConstraint : TransformConstraint

    Properties

    ConstraintOnMovement

    Constrain movement along an axis

    Declaration
    public AxisFlags ConstraintOnMovement { get; set; }
    Property Value
    Type Description
    AxisFlags

    ConstraintType

    Declaration
    public override TransformFlags ConstraintType { get; }
    Property Value
    Type Description
    TransformFlags
    Overrides
    TransformConstraint.ConstraintType

    UseLocalSpaceForConstraint

    Relative to rotation at manipulation start or world

    Declaration
    public bool UseLocalSpaceForConstraint { get; set; }
    Property Value
    Type Description
    Boolean

    Methods

    ApplyConstraint(ref MixedRealityTransform)

    Removes movement along a given axis if its flag is found in ConstraintOnMovement

    Declaration
    public override void ApplyConstraint(ref MixedRealityTransform transform)
    Parameters
    Type Name Description
    MixedRealityTransform transform
    Overrides
    TransformConstraint.ApplyConstraint(ref MixedRealityTransform)
    In This Article
    • Properties
      • ConstraintOnMovement
      • ConstraintType
      • UseLocalSpaceForConstraint
    • Methods
      • ApplyConstraint(ref MixedRealityTransform)
    Back to top Generated by DocFX