First pass at a physics engine for a sailing game I've been thinking of.
Left and right turn the tiller/rudder/whatever it's called.
Up and down changes the rowing speed.
X raises sails, Z lowers sails.
In an actual game, you could sail around between islands, getting cargo (changing mass which effects physics engine), upgrading ship parts, getting food for crew (effecting rowing power), using magic to change wind direction.
It sometimes gets stuck when you're rowing against the wind and trying to turn into it. I'm pretty happy as a first pass. Had to review a lot of trig and diff-eq stuff from college.
P#117845 2022-09-23 09:52
[Please log in to post a comment]