mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class FaceUserConstraint

    Component for fixing the rotation of a manipulated object such that it always faces or faces away from the user

    Inheritance
    Object
    TransformConstraint
    FaceUserConstraint
    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 FaceUserConstraint : TransformConstraint

    Properties

    ConstraintType

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

    FaceAway

    If true, this will constrain rotation to face away from the user

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

    Methods

    ApplyConstraint(ref MixedRealityTransform)

    Updates an rotation so that its facing the camera

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