In the last article, I discussed the implementation of rolling resistance in the Minetest vehicles mod.
I have to admit, that after further research, the approach of using
was not completely correct. The problem is the Crr factor. Using a pre-calculated value is only possible, if the vehicle is moving at a constant speed. Apparently, a car does not move at a constant speed, so I have to find another way to calculate the rolling resistance. For now, I disabled it in the mod.
Minetest has a quite powerful modding API that claims to be simple. This is true from a technical point of view. The problem is that there is no official beginner-friendly tutorial allowing people to learn the API step-by-step. Fortunately, some people took the time to create tutorials and documentations of the Minetest Lua API on their own. I’m going to present three of them to you.