Command Palette

Search for a command to run...

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

Aim a pointer at a target

A cone named pointer has its tip along its own +z axis. A ball named target sits at (1.5, 0.4, −2).

Turn the pointer so its tip points straight at the target. Use one call, not angles worked out by hand.

What Check tests

  1. The pointer and the target exist
  2. The pointer's +z axis points at the target
  3. The pointer did not move

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.