Command Palette

Search for a command to run...

Hectal
Phase 2: Just Enough 3D Math
3D Web · Exercise 3 of 5 PreviousNext
Beginner

Mark a wheel's world position

A frame stands at x = 2 and is turned 90° around y. A wheel is its child, at local (1, 0, 0).

Add a small ball named marker to the scene (not to the frame) at the wheel's world position. Ask three.js for that position; do not work it out yourself.

What Check tests

  1. A mesh named marker exists
  2. The marker is a direct child of the scene
  3. The marker is at the wheel's world position (2, 0, -1)
  4. The wheel itself has not moved (local x = 1)

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.