Command Palette

Search for a command to run...

Hectal
Phase 4: Geometry
3D Web · Exercise 3 of 4 PreviousNext
Intermediate

Centre the crate and put it on the floor

The crate arrives off to the side and floating: its geometry was moved by (2, 3, 1) when it was made.

Fix its geometry (not the mesh's position) so the crate is centred at x = 0 and z = 0 with its bottom at y = 0. Keep the mesh at (0, 0, 0), and keep its bounding box up to date.

What Check tests

  1. The mesh itself is still at (0, 0, 0)
  2. The lowest vertex is at y = 0
  3. The crate is centred in x and z
  4. Its bounding box is not stale

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.