Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Simulating a ship  (Read 821 times)

Kofthefens

  • Bay Watcher
  • Keep calm and OH GOD CAPYBARAS
    • View Profile
    • Marshland Games
Simulating a ship
« on: June 23, 2013, 06:07:08 pm »

EDIT
Solved. I figured it out elsewhere. Keels can transfer diagonal to horizontal force, so I can just calculate the wind force based on the angle between the wind and the sail. Now locking thread.


OP:
I am currently trying to accurately simulate a square-rigged sailing ship. There is only one sail, just about right in the middle of the ship. The goal: to calculate the speed and heading (I think that's the term) of the ship.

The way I see it, there are 4 relevant things.
a) Wind - a vector I suppose
b) Sail - just an angle between -45 to 45, relative to the keel. 0 is perpendicular to the keel.
c) Keel - an angle
d) Rudder - an angle between -45 and 45, relative to the keel. 0 is in line with the keel.

I think that the heading is based only on the rudder. The speed is would be based on the wind hitting the sail, but only on the axis of the keel.

How do I calculate speed and heading?
« Last Edit: June 23, 2013, 09:24:43 pm by Kofthefens »
Logged
I don't care about your indigestion-- How are you is a greeting, not a question.

The epic of Îton Sákrith
The Chronicles of HammerBlaze
My website - Free games