This is my first project with Defold. Wanting to make a relaxing boat simulator game on top view.
I’m making the first steps after studying Defold tutorials:
There is viscosity friction affected by the orientation of the boat. It should slide better moving forward, while having more resistance opposition from water when having lateral motion.
I used Linear Damping and Angular Damping to simulate the general friction of the movement in any direction, but calculated and applied the additional viscosity friction on every frame of the simulation.
You can play with the demo, compare behavior of the standard dynamic objects vs the green boat and read about the easy math behind, here on my blog.