logo

Babylon.js Market

By Lawrence

5 minutes

Catching up?

Dropping in at this lesson? One command reinstalls the library components the build uses so far and writes the scene as it stood at the end of the previous lesson to public/scenes/SpaceshooterFlight-lesson-2/scene.json:

bjs download scene SpaceshooterFlight-lesson-2 --all

The scene you are caught up to at the start of this lesson, rendered from the full asset download.

Copy that scene.json over your src/scenes/spaceshooter.json and you are caught up to the start of this lesson.

Rock is a passive hazard. It punishes you for flying badly, and that's all it does — a boulder never made a decision. This lesson adds the other kind: a hazard that answers. Shoot an oil blob and it spits a lethal drop back along the line your round came in on.

You need no new field component to do it. The one on World already has the switch.

Continue reading

Unlock the Full Course

Every lesson, the runnable examples, and the finished build — yours to keep.

$9one-time

Was this page helpful?

We read every note — tell us what's working and what isn't.

↑↓ NavigateEnter SelectEsc CloseCtrl+K Open Search