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

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

The AimConstraint type exposes the following members.

Methods
  NameDescription
Public methodCompute
Point the AimVector on the object at the weighted average ConstraintTarget position 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 propertyAimVector
Gets or sets the axis on ConstrainedObject that will look at the target position.
Public propertyConstrainedObject
Gets the constrained object.
(Inherited from Constraint.)
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.)
Public propertyUpVector
Gets or sets the axis on ConstrainedObject that will act as the constrained up-vector.
Public propertyWorldUpObject
Gets or sets the Transform to use as the up-vector constraint, if needed.
Public propertyWorldUpType
Gets or sets a value specifying how WorldUpVector should be interpreted.
Public propertyWorldUpVector
Gets or sets the axis to which ConstrainedObject's UpVector is constrained.
Top
Remarks

Add this component to an object that needs to aim at another object, or that needs to aim at a point that is the weighted, interpolated position of several objects' positions

When copying data in from Maya, the Offset value is only correct for rotateOrder XYZ (this is a Maya bug).

See Also