I pressed the gas pedal, the car accelerated and smashed into a wall.
How can I stop that from happening again?
If you want the car to stop you need to use the brakes.
OK. What are “the brakes”?
First, you need to read the documentation that comes with a car.
Second, learn to use the car properly.
Now to answer your question.
The brakes are what squeeze the rotors to bring the car to a stop.
Got it, thanks.
How do I squeeze the rotors?
That’s what the brakes do.
You can’t actually squeeze the rotors while the car is moving.
The brakes, however, can apply enough force or friction to slow the car and bring it to a stop.
How do I use the brakes, so that I can stop the car?
Yeah. This is why it is so important to read and understand the documentation, BEFORE you drive.
You really can’t just get in a car and drive.
So nobody here can explain the brakes, thing, to me?
OTHER EXPERIENCED PROGRAMMER:
I think I can help.
You see, the brakes work to slow the rotors from spinning.
The rotors are part of the wheels. The tires are attached to the wheels also.
Now the brakes are controlled by a built in cable that simultaneously squeezes all four rotors with a bunch of built in mechanical stuff and fluids that squeeze together the calipers that the brake pads are attached to.
When the brake pads come together, the rotors are “in the way” or between the pads. This causes the friction that will slow the vehicle or stop it altogether.
Hope this helps, good luck.