MCG Ray to Surface Position Constraint

The MCG Ray to Surface Position Constraint sets an object's position to a location on the surface of one or more meshes as determined by an intersecting ray cast from another object. If desired, you can apply an offset from the surface.

  1. Prepare at least three objects:
    • An object to constrain.
    • A mesh to constrain to.
    • An object to serve as the ray origin.
  2. Select the object to constrain.
  3. Choose Animation menu > MCG Controllers > MCG Ray to Surface Position Constraint.
  4. Click the surface mesh.
  5. Click the ray origin object.
  6. If desired, you can use Pick Surface to add more mesh surfaces.

Alternatively, you can use Assign Controller on the object's Position track in the Track View or Motion Panel to assign the MCG_rayToSurfacePosition manually, and then use the Pick Surface and Ray Cast Object buttons to specify the appropriate objects.

Interface

Cast Ray To
Pick Surface
Click to select additional meshes.
[surface list]
Lists the meshes.
Remove Selected
Select an object in the list, and then click this button to remove it.
Ray Cast Object
Ray Cast Object
Click this button to select an object in the scene to serve as the ray origin.
Aim at Surface Pivot
When activated, rays are cast from the ray cast object's center to the centers of the surfaces. Otherwise, a ray is cast along one of the ray cast object's local axes.
Ray Axis
The direction of the ray cast from the ray cast object, when Aim at Surface Pivot is off.
Offset Object
Offsets the object's position from the ray intersection. When Use Surface Normal is off, the object is offset along the ray.