^ Smoke particles come from each wheel when skidding.
Download
https://github.com/paramat/driftcar/archive/master.zipBrowse code
https://github.com/paramat/driftcardriftcar by paramat
For Minetest 0.4.16 and later. Compatible with Minetest 5.0.0-dev.
Depends: default
Licenses
--------
Source code: MIT
Media (textures and car nodebox): CC BY-SA 3.0
Description
-----------
A vehicle using some physics modelling for more realistic behaviour.
Usage
-----
Due to client->server->client control delay this mod is best used in
singleplayer or in local multiplayer.
Intensive mods that cause long server lags, such as Lua mapgen mods, will affect
the responsiveness of the vehicle, even in singleplayer.
There is no crafting recipe, the vehicle can be found in the creative inventory.
Third-person camera mode is recommended when driving for a better view.
If parameter 'AVIEW' in the 'init.lua' file is set to 'true', view is
automatically set to vehicle velocity direction.
Controls
--------
Right mouse button = Enter or exit car when pointing at car.
Forward = Speed up. Slow down when moving backwards.
Backward = Slow down. Speed up when moving backwards.
Left = Rotate anticlockwise.
Right = Rotate clockwise.
More stuff
----------
Something i have wanted to do for a long time, use my knowledge of physics to create a car that has fairly realistic skidding behaviour. It's capable of drifting, doughnuts and J-turns.
Due to the issues mentioned above it's best tried out first in singleplayer, flat mapgen, with no other mods running, for best responsiveness.
4 forces (accelerations) are modelled:
Linear force due to wheel torque: accelerating or braking. Acceleration torque falls to zero at a certain speed.
Linear force due to rolling resistance. Constant and opposite to linear motion.
Air drag opposite to velocity. Opposite to velocity and proportional to speed.
Lateral force due to tire grip. Opposite to lateral motion. This is limited so that when tire grip is overcome when turning skidding occurs.
Turning is acheived by rotating the vehicle, the lateral force is what actually alters the direction of motion.
Some of the 4 forces are set to zero if the vehicle is not in contact with the ground. This can be seen if turning while driving off the side of a cliff.