Hi, I have an unusual ship 'game' in which I am supposed to code for some of the ship's movements against a sine wave.
Given only the ship speed, wave period and amplitude (no wave length!), in a scenario where the ship and wave are travelling in the same direction, does the assumption that the ship will be constantly on the same point of the wave hold any water? Or is there a way to calculate which point on the wave the ship is on, given only the above mentioned information?
Also, given the same information, I am currently using cos to calculate the position on the wave the ship is on, when the ship and wave are moving in different directions. I take the ship's own movement as the hypotenuse and try to find the adjacent, which is the amount moved across the wave.