3D Web · Exercise 5 of 5 Previous
Intermediate
Add the seat tube to the frame
A bike group named bike already holds a down tube. Add the seat tube: a CylinderGeometry mesh named seat-tube, radius 0.020, running from the bottom bracket (0, 0.30, 0) to the seat cluster (−0.10, 0.82, 0).
Place it halfway between the two points and turn it so its axis points from one to the other (quaternion.setFromUnitVectors). Its height must equal the distance between the points.
What Check tests
- A mesh named seat-tube inside the bike group
- Its middle is halfway between the two points: (−0.05, 0.56, 0)
- Its length is the distance between the points (about 0.5297 m)
- Its top end is at the seat cluster
- The down tube is still there
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
Runs in your browser. Your code is saved here.
Your page
Press Run to see the page.
Console
Nothing logged yet.