logo
By Lawrence

5 minutes

Add Space Dust to Show Speed

Fly a hard burn now and something feels off. The chase camera from last lesson follows the falcon perfectly, but the falcon barely seems to move: throttle to full and the ship sits dead center, the background the same flat black it was when you stood still. On the ground you see speed in the world rushing past — trees, the road, the horizon tilting. Out here there is no world to rush past, so we bring one a speck at a time: a dust field the ship flies through, plus glow and bloom so a star looks like a real star.

Add the backdrop to the world

One component does all of this. It sits on the World entity, next to the input sources from Lesson 5:

"World": {
  "tags": ["world"],
  "components": {
    "KeyboardInput": {},
    "MouseInput": {},
    "SpaceDust": {}
  }
}

Empty braces. Every number SpaceDust needs already has a default value. Those defaults are tuned for exactly this scene.

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