logo
By Lawrence

15 minutes

Car Crashes

The trees are paint. Aim the car at a house and you drive in one wall and out the other. This lesson makes the roadside solid, and makes a corner hit spin you the way a real crash does.

Push and lever arm

Push a door near its handle and it swings open. Push it right beside the hinge, just as hard, and it barely moves. A push turns a thing by the push times its lever arm, which is how far to the side of the middle the push lands. Push straight through the middle and the arm is 0, so nothing turns.

Three top views of a car hitting a tree trunk. Left: the trunk meets the front bumper 0.8 m right of the centre line, the push points straight back from there, and a curved arrow shows the car turning. Middle: the trunk meets the bumper dead centre, the push runs through the middle of the car, and there is no turn. Right: the car drawn as a circle, where the push always points at the middle, so it never has an arm.

A crash is one sharp push, j, along the line n where the two things meet. In words: the closing speed, with a little bounce added, divided by how hard the two things are to shove and to turn at that spot:

j   = −(1 + e) · v_n / (1/m_A + 1/m_B + (r_A⊥·n)²/I_A + (r_B⊥·n)²/I_B)
Δω  = (r⊥ · J) / I
I   = m (w² + l²) / 12        for a box w wide and l long

v_n is how fast the two touching points close along n, and e is the bounce. The bottom adds up how hard each body is to move: 1/m to slide it, and (r⊥·n)²/I to turn it. There r⊥·n is the lever arm, and I says how hard the body is to spin. A tree never moves, so its two parts are 0. The second line turns the push into Δω, the change in spin.

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