Use the Position constraint to cause an object to follow the position of a target object or the weighted average position of several objects.
Position constraints align the elements of the robot assembly.
The Position constraint requires a constrained object and one or more target objects. Once assigned the object becomes constrained to the target object’s position. Animating the target’s position causes the constrained object to follow.
A constrained object can be influenced by several target objects. When using multiple targets, each target has a Weight value that defines the extent of its influence over the constrained object, relative to other targets.
The Weight value is meaningful (and available) only with multiple targets. A value of 0 means the target has no influence. Any value greater than 0 causes the target to influence the constrained object relative to other targets' Weight settings. For example, a target with a Weight value of 80 has twice the influence of a target with a Weight value of 40.
For example, if a sphere is position-constrained between two targets and each target’s weight value is 100, the sphere will maintain an equal distance between both targets even when they are in motion. If one of the weight values is 0 and the other is 50, then the sphere is influenced only by the target with the higher value.
To assign a Position constraint:
A rubber-band line extends from the constrained object to the mouse cursor, indicating that a target object is needed.
To access the Position constraint’s parameters on the Motion panel:
The Position constraint parameters are located on the Position Constraint rollout.
To edit weight values:
The Position constraint parameters are located on the Position Constraint rollout.
To animate weight values:
The Position constraint parameters are located on the Position Constraint rollout.
Example: To assign a Position constraint with two targets and editing weights:
The box is now position-constrained between the two targets.
As the sphere moves, the box maintains an equal distance between the sphere and the cylinder. This is because the weight values for both targets are equal. By default the values are 1.00. If the sphere had a higher weight value than the cylinder, the sphere would influence the box more than the cylinder.
As the value decreases, the box moves closer to the sphere.
The sphere has more influence over the box’s movement than the cylinder.
Once you assign a Position constraint, you can access its properties on the Position Constraint rollout in the Motion panel. In this rollout you can add or delete targets, assign weighting, and animate each target's weight value.