boats: Improve physics by implementing drag and friction forces
authorBartosz <gang65@users.noreply.github.com>
Thu, 24 Oct 2019 02:47:28 +0000 (04:47 +0200)
committerParamat <paramat@users.noreply.github.com>
Thu, 24 Oct 2019 02:47:28 +0000 (03:47 +0100)
commitdd71dcbcf6bc40195334383f1cadc69f780abaeb
tree5d778d68cd7674c842140525f143b32e150166ad
parentf9a9e87af6bc4f9a553b3b7aaa19234b214baf2c
boats: Improve physics by implementing drag and friction forces

Implement drag force according to the equation:
drag_force = drag_coefficient * speed ^2
Also add a small constant force to implement friction force.
.luacheckrc
mods/boats/init.lua