Edit

Bagikan melalui


RotationAxisConstraint Class

Definition

Component for limiting the rotation axes for ObjectManipulator or BoundsControl

public ref class RotationAxisConstraint : Microsoft::MixedReality::Toolkit::UI::TransformConstraint
public class RotationAxisConstraint : Microsoft.MixedReality.Toolkit.UI.TransformConstraint
type RotationAxisConstraint = class
    inherit TransformConstraint
Public Class RotationAxisConstraint
Inherits TransformConstraint
Inheritance
UnityEngine.MonoBehaviour
RotationAxisConstraint

Constructors

RotationAxisConstraint()

Fields

worldPoseOnManipulationStart (Inherited from TransformConstraint)

Properties

ConstraintOnRotation

Constrain rotation about an axis

ConstraintType
ExecutionPriority

Execution order priority of this constraint. Lower numbers will be executed before higher numbers.

(Inherited from TransformConstraint)
HandType

Whether this constraint applies to one hand manipulation, two hand manipulation or both

(Inherited from TransformConstraint)
ProximityType

Whether this constraint applies to near manipulation, far manipulation or both

(Inherited from TransformConstraint)
TargetTransform
Obsolete.

Transform that we intend to apply constraints to

(Inherited from TransformConstraint)
UseLocalSpaceForConstraint

Gets or sets whether the constraints should be applied in local space of the object being manipulated or world space.

Methods

ApplyConstraint(MixedRealityTransform)

Removes rotation about given axis if its flag is found in ConstraintOnRotation

Initialize(MixedRealityPose)
Obsolete.

Intended to be called on manipulation started

(Inherited from TransformConstraint)
Initialize(MixedRealityTransform)

Intended to be called on manipulation started

(Inherited from TransformConstraint)
OnDisable() (Inherited from TransformConstraint)
OnEnable() (Inherited from TransformConstraint)

Applies to