日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class RotationAxisConstraint

    Component for limiting the rotation axes for ObjectManipulator or BoundsControl

    Inheritance
    Object
    TransformConstraint
    RotationAxisConstraint
    Inherited Members
    TransformConstraint.HandType
    TransformConstraint.ProximityType
    TransformConstraint.worldPoseOnManipulationStart
    TransformConstraint.Initialize(MixedRealityTransform)
    TransformConstraint.OnEnable()
    TransformConstraint.OnDisable()
    TransformConstraint.Initialize(MixedRealityPose)
    TransformConstraint.TargetTransform
    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
    TransformConstraint.ConstraintType

    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
    Overrides
    TransformConstraint.ApplyConstraint(ref MixedRealityTransform)
    Back to top Generated by DocFX