logo
By Lawrence

15 minutes

Collision Impulses

Starting point

This lesson runs in the lab with lesson 2's parked car and contact marker still in it. Turn the parked car 45° and move it so your front corner meets its back corner:

src/scenes/endlessrampage.json
"MeshPrimitive": { …, "position": [2.4, 0.7, 25], "rotation": [0, 0.7854, 0] }

resolveImpulse is the core function that sizes a crash's push. Lesson 1.6 worked one push through it, against a tree that never moves. Two cars both move, both turn, and the push has to be right for both of them at once. This lesson builds the bottom of the formula from one idea: how heavy a point feels.

Continue reading

Unlock the Full Course

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

$5one-time

Was this page helpful?

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

↑↓ NavigateEnter SelectEsc CloseCtrl+K Open Search