Click or drag to resize
OrientConstraint Class
A Constraint that replicates the behavior of the orientConstraint node in Maya.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Candlelight.MayaDGNode
            Candlelight.MayaConstraint
              Candlelight.MayaOrientConstraint

Namespace: Candlelight.Maya
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public sealed class OrientConstraint : Constraint

The OrientConstraint type exposes the following members.

Methods
  NameDescription
Public methodCompute
Compute weighted average rotation of ConstraintTargets and apply offset.
(Overrides ConstraintCompute.)
Public methodGetTarget
Gets the target with the specified index.
(Inherited from Constraint.)
Public methodGetTargets
Gets the targets.
(Inherited from Constraint.)
Public methodSetTargets
Sets the targets.
(Inherited from Constraint.)
Top
Extension Methods
  NameDescription
Public Extension MethodGetPrefabName
Gets the name of the prefab associated with the supplied instance.
(Defined by ObjectX.)
Public Extension MethodOpenReferencePage
Opens a reference web page generated for the specified object.
(Defined by ObjectX.)
Top
Properties
  NameDescription
Public propertyConstrainedObject
Gets the constrained object.
(Inherited from Constraint.)
Public propertyInterpType
Gets or sets the interpolation method to use if there are several ConstraintTargets.
Public propertyNodeName
Gets the name of the node in the Maya Dependency Graph to which this instance corresponds.
(Inherited from DGNode.)
Public propertyOffset
Gets or sets the offset.
(Inherited from Constraint.)
Public propertyTargetCount (Inherited from Constraint.)
Top
Remarks

Add this component to an object that needs to lock its orientation to another object, or that needs to perform a multiple weighted interpolation of several objects' orientations.

See QuaternionX for other notes and limitations.

See Also