Click or drag to resize
ShoulderConstraint Class
A Constraint that replicates the behavior of the am_ShoulderConstraint node in Maya.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Candlelight.MayaDGNode
            Candlelight.MayaShoulderConstraint

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

The ShoulderConstraint type exposes the following members.

Methods
  NameDescription
Public methodCompute
Compute the result of the constraint.
(Overrides DGNodeCompute.)
Public methodGetTwistJoint
Gets the twist joint with the specified index.
Public methodGetTwistJoints
Gets the twist joints.
Public methodSetTwistJoints
Sets the twist joints.
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.
Public propertyElevationAngle
Gets the elevation angle of the shoulder.
Public propertyElevationDot
Gets the elevation dot-product of the shoulder.
Public propertyNodeName
Gets the name of the node in the Maya Dependency Graph to which this instance corresponds.
(Inherited from DGNode.)
Public propertyRaisedAngleOffset
Gets or sets a value indicating how far back ConstrainedObject's up-vector should rotate when the arm is at maximum elevation.
Public propertyShoulderAimAxis
Gets or sets the axis on ShoulderObject that points toward the elbow joint.
Public propertyShoulderFrontAxis
Gets or sets the axis on ShoulderObject that points to the front of the character in its neutral pose.
Public propertyShoulderObject
Gets or sets the shoulder object in the control rig.
Public propertySpineAimAxis
Gets or sets the axis on SpineObject that points to the top of the character in its neutral pose.
Public propertySpineFrontAxis
Gets or sets the axis on SpineObject that points to the front of the character in its neutral pose.
Public propertySpineObject
Gets or sets the spine object in the control rig in whose coordinate frame the shoulder's elevation angle is computed. This object is typically the ribcage.
Public propertyTwistJointCount
Gets the number of additional twist joints in the shoulder.
Top
Remarks

Add this component to the most proximal helper joint in a shoulder rig in order to correct twist deformation.

ShoulderObject and ConstrainedObject should be coincident and should be siblings in the hierarchy. ShoulderObject should drive the animation and receive full twisting rotation. All OrientConstraints assigned using SetTwistJoints(IEnumerableOrientConstraint) should have both ConstrainedObject and ShoulderObject as targets.

See Also