Class FaceUserConstraint
Component for fixing the rotation of a manipulated object such that it always faces or faces away from the user
Inherited Members
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
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 |