Hi, In this tutorial, you'll learn how to use the new surface constraint.
Load the constraint project scene.
We'll clone and constrain the cylinder to the sphere.
First, let's see what happens with the regular clonetool.
Set it to "copies" mode, and enable "align to normal".
Control click on the cylinder to set the clone source, and click a few times on the sphere.
Move the sphere... the cylinders don't follow the sphere.
Thanks to the new surface constraint, an object can now dynamically follow the surface of
another object.
Remove the clones, and now, enable the "constrain to surface" attribute.
Clone a few cylinders.
Now, the cloned cylinders follow the sphere.
This is because for each cylinder, Clarisse adds a special constraint: if you go inside,
you can edit the attributes.
For example, you can adjust the offset to move the cylinder relatively to the surface..
You can do the same interactively using the Set Offset button.
Same for the orientation, using the Set Orientation button...
.. or the attributes.
You can also set a new target, if you want to follow a different object.
First, remove the target.
Then click on Pick target and pick a new one.
Now the cylinder follows the plane.
Finally, you can also setup the constraint manually, without using the clone tool.
Select the first cylinder, and add a surface constraint.
Go inside, pick a target, and click.
Now the cylinder is constrained to the sphere.
You can then edit the attributes like you would with a cloned object.
and at anytime, enable or disable the constraint.
The constraint also works on animated/deformed surfaces.
Load the "ocean_start".project
We have an animated ocean surface, and a few objects.
It is now very easy to use the clone constraint to make these objects float on the water.
Drag and drop the objects into the list.
Make sure the "Constrain to Surface" and "Align to Normal" attributes are enabled.
Let's add some random rotation...
And clone the floating debris!
If we play the animation, they are now nicely floating...
To finish, let's add Murray on one of the planks.
As you can see, constraints on already constrained objects also works.
Thanks for watching!
Bye!