Command Palette

Search for a command to run...

Hectal
Phase 3: three.js Foundations
3D Web · Exercise 3 of 5 PreviousNext
Beginner

Put the wheels in a bike group

Build a group named bike placed at x = 1. Inside it add two groups named rear-wheel and front-wheel, positioned (local to the bike) at (−0.55, 0.35, 0) and (0.58, 0.35, 0).

Each wheel group holds a torus mesh (radius 0.33, tube 0.022). Find the front wheel with bike.getObjectByName.

What Check tests

  1. A group named bike at x = 1
  2. front-wheel is a child of bike at world (1.58, 0.35, 0)
  3. rear-wheel is a child of bike at world (0.45, 0.35, 0)
  4. Each wheel holds a torus
  5. The tyre is 0.66 m across (radius 0.33)

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.