In these steps, you model a 2D curtain rod from a plane and attach hair to it. You create and keyframe a polygon sphere, which
you then convert to a passive collision object so that it collides with the curtain.
To create the curtain using nHair
- Turn off the option for NURBS by selecting (no check-mark).
- Create a NURBS plane by selecting > .
The window appears.
- In the window, select .
- Set to 1.4 and to 14.5.
- Click.
- With the plane selected, select > .
The box appears.
- In the window, select .
- Set the following:
- to
- to 1, to 20
- to 0
- to 0
- to 12
- to 10
- Turn off the options , and
- Ensure that is turned on.
- Click .
Hair is created and attached to the plane.
You may need to orbit the viewport so that the sene is positioned like the image below.
- In the (), select the NURBS plane.
- Open the by clicking the icon.
- In the , set to 10 and to 180.
The bottom of the hair should almost touch the ground plane.
To create and animate the colliding sphere
- Turn off the option for polygons by selecting (no check-mark).
- Create a polygon sphere by selecting > .
Thewindow appears.
- In the window, select .
- Set to 1.5.
- Click .
- With the sphere selected, set the following values in the :
The polygon sphere is now level with the bottom of the curtain. You can now animate the sphere so that it passes through the
curtain.
- To animate the sphere, set keyframes by doing the following:
- Go to frame 1 on the .
- In the , - click and select .
- To set the keyframe for the sphere and move it through the curtain, do the following:
- Go to frame 100 in the .
- In the , set to -9.5.
- -click and select .
- Rewind the to 0 and play the animation.
The sphere passes through the curtain as though the curtain weren’t there. In the next steps you set the sphere as a passive
collision object so that it collides with the hair.
In the next section of the lesson, you convert the polygon sphere to a passive collision object so that it collides with the
curtain.