By Lawrence
15 minutes
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
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
=