![]() |
#11
|
|||
|
|||
![]() Quote:
You could use a simple sine wave function and plot new way points at maximum and minimum amplitude along a line described by the ship's baseline course. If the programmers wanted to get fancy, they could give options for amplitude and frequency to control width of each "curve" and frequency of course changes. This would be realistic for "non-combat" movement by ships in a war zone, where zig-zagging was standard submarine defense. For "emergency" movement against air attack, it would "good enough". If you wanted to move into "pseudo AI" for ships, there are some simple "swarming" or "flocking" algorithms which could be used for basic station-keeping and collision avoidance, as long as ships are assumed to be in a convoy or some other formation and are programmed to keep a certain distance from other ships. These could be used to make a formation of ships all turn in the same direction when under attack. Collision avoidance, especially realistic avoidance of shallow waters, and "intelligent" tactics vs. air attack, would require a lot more effort. Realistic ship movement is way beyond IL2's ability, since it doesn't take factors such as hull draft, turning radius, acceleration, deceleration, heeling angle, waves, wind, etc. into effect when determining ship movement. |
|
|