I have thought about the brakes for some time and decided to try a different way. Instead of calculating a brake power and feed that into the Newton–Raphson method to determine the end speed, I just calculate the (negative) acceleration and subtract that from the speed. As I know the time since the last calculation was done it is quite easy to do. I still have the impression, that the brake is a bit weak, but I could be mistaken, at least I can see, that the car is indeed slowing down much faster.
Why it didn't work the way I tried it at first I don't know. But this way works and looks useful. Now I only have to add handling of slope. The maximum friction is determined by the weight perpendicular to the street, the acceleration on the mass of the car. If the street is level, then the mass vanishes, but when the street is sloped, it doesn't as only a part of the weight is available for friction, the rest acts against the moving direction as potential energy. But for the deceleration the full weight has to be used. The component of mass acting against the movement direction is already handled in the energy formula.
Sometimes some basic knowledge of physics is actually useful.
A bit late this month, but I didn't feel like it. But here goes the review of November. Small ChangesI have a bit of a problem to find a good headline for this section. I worked on some of the modifiers and often added only a small feature. First I c
Tracked: Dec 06, 21:22