Interface to IK aim constraint data.
#include <AlAimConstraint.h>
class AlAimConstraint : public AlConstraint
AlAimConstraint();
virtual ~AlAimConstraint();
virtual AlObject* copyWrapper() const;
statusCode create(AlDagNode*, AlDagNode*, AlAimConstraintAxis, AlAimConstraintAxis );
statusCode create(AlDagNode*, AlDagNode*, AlAimConstraintAxis, AlAimConstraintAxis, double[2] );
virtual AlObjectType type() const;
AlAimConstraintAxis aimAxis( void ) const;
AlAimConstraintAxis upAxis( void ) const;
statusCode at( double[3] ) const;
statusCode setAimAxis( AlAimConstraintAxis );
statusCode setUpAxis( AlAimConstraintAxis );
The AlAimConstraint class allows access to the IK aim constraint information on an AlJoint. This class is derived from the AlConstraint class.
(See the discussion of skeletons, joints, constraints, IK, and so on, in the printed reference manuals for a full description.)
statusCode AlAimConstraint::create(AlDagNode* srcNode, AlDagNode* destNode, AlAimConstraintAxis aim, AlAimConstraintAxis up)
Does all the initialization necessary to attach the constraint node to the DAG node as an aim constraint. A DAG node can not be constrained to itself.
statusCode AlAimConstraint::create(AlDagNode* srcNode, AlDagNode* destNode, AlAimConstraintAxis aim, AlAimConstraintAxis up, double uv[2])
This method does all the initialization necessary to attach the constraint node to the dag node as an uv aim constraint. A dag node can not be constrained to itself. The destNode must be spline geometry node, for example, spline curve or a spline surface.
< srcNode - AlDagNode this constraint is to be added to.
< destNode - AlDagNode that srcNode is constrained to.
< aim - The axis this constraint is tied to.
< up - The up axis which completes the constraint.
< uv[2] - The uv parameter on destNode that srcNode is constrained to. If the destNode is a curve, only uv[0] is used.