SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Current crop of subsims & naval games > Wolfpack
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-14-20, 01:48 PM   #1
neistridlar
Swabbie
 
Join Date: Mar 2020
Location: Norway
Posts: 11
Downloads: 3
Uploads: 0
Default Suggestion: More realistic steering dynamics

In the game currently, the u-boats (and other ships for that matter) feel very much like they are on “rails”. IRL though boats and ships do a whole lot of slipping and sliding. I implemented a simplified physics model to demonstrate how boats actually behave. It’s tuned to exaggerate the adverse effects of using the rudder, and the sliding of the boat to make it easier to see. It’s available here: https://scratch.mit.edu/projects/395033149

About the model:
The model is based on Newtonian physics. Both the rudder and the hull of the boat itself are considered lifting surfaces. That is the water acts upon them with a force perpendicular to the surface, proportional to speed squared, however in my simulation I had to settle for just proportional to speed, to prevent the simulation form freaking out when speed got moderately high. The amount of force is also dependent on the angle of attack relative to the incoming waterstream. In my simulation I chose to use the sine of the angle of attack as the function, which is not quite right either, but it was easy to do. A lookup table would probably be better. In addition to those forces there is also the thrust from the propeller and water friction, also proportional to the speed.

I also calculate the torque from the rudder with the same math as the rudder force. There is also a stabilizing torque from the hull, which uses the same math as the lift from the hull. Lastly there is a stabilizing torque which depends only on angular velocity.

Once all the forces have been summed up, the velocity vector is decomposed. The forces are added to the velocity vector to get the new course and speed. Lastly the torques are summed up, and added to the angular velocity of the boat, and the boat, and the angular velocity is added to the heading of the boat. For both these steps it is important to consider the time since the last step of course, otherwise the simulation will run differently depending on how fast the physics can be calculated. I did not consider this in my simulation, so slow computers may have slightly different results.

Other factors that I have overlooked in my model is the effect of propwash over the rudders, which makes them much more effective when the propellers are driving the boat forwards. The twin-prop design also offers some stabializing torque when the props are driven close to the speed at which the boat is moving. Also I have neglected to account for the effect that the turning of the boat has on the angle of attack on the rudders. And lastly there may exist different flow-regimes, depending on speed and angle of attack, which would also influence the forces involved, which I have not modeled, but could be approximated with lookup-tables if necessary.

Given that I was able to throw together this demo in about a day in a coding language I never used before suggests to me that this should be not too hard to add to the game. Though there might of course be limitations with how things are implemented in game that makes things more challenging.

How would this affect gameplay?
The helmsman would have more of a challenge obviously. In order to make a clean turn so that the navigators job becomes easy, he/she must anticipate the boats response to a larger extent than the current system. There is more of a delay before the boat starts to turn, and the turn has to be “arrested” properly as well. Simply straightening out the rudder isn't going to make the boat go straight, that’s just not how boats work.

It should be simple enough to add some turbulence and wake effects as well to this model, making the helm a fulltime job, as it would be IRL.
neistridlar is offline   Reply With Quote
Old 05-14-20, 02:34 PM   #2
Fidd
XO
 
Join Date: Apr 2005
Location: Blighty!
Posts: 405
Downloads: 10
Uploads: 0


Default

I think a more accurate "sea-state" model, whereby in rough weather it becomes harder to maintain a specific periscope depth, and harder to take accurate sightings, has some useful gameplay impacts. I'm not sure that "making the navigators job harder" or otherwise making being helmsman a more difficult proposition really falls into that category on it's own.

Similarly, an arguably more worthy area for improved modelling of the U-boats handling, is in the vertical. Reading accounts of submarine warfare at the time, it was not unusual for a loss of control in the vertical to occur during a DC attack, leading to accidentally broaching the surface, or having to arrest a rapid unwanted dive. This seems to me to be a more useful area for improving the physics model, rather than keeping accurate headings; looking at it from a gameplay point of view?
Fidd is offline   Reply With Quote
Old 05-15-20, 04:24 AM   #3
neistridlar
Swabbie
 
Join Date: Mar 2020
Location: Norway
Posts: 11
Downloads: 3
Uploads: 0
Default

Quote:
Originally Posted by Fidd View Post
I think a more accurate "sea-state" model, whereby in rough weather it becomes harder to maintain a specific periscope depth, and harder to take accurate sightings, has some useful gameplay impacts. I'm not sure that "making the navigators job harder" or otherwise making being helmsman a more difficult proposition really falls into that category on it's own.

Similarly, an arguably more worthy area for improved modelling of the U-boats handling, is in the vertical. Reading accounts of submarine warfare at the time, it was not unusual for a loss of control in the vertical to occur during a DC attack, leading to accidentally broaching the surface, or having to arrest a rapid unwanted dive. This seems to me to be a more useful area for improving the physics model, rather than keeping accurate headings; looking at it from a gameplay point of view?
While I agree with you that your other suggestions would be much more interesting game-play wise, there are other factors to consider as well. To me at least more challenging = more rewarding and more realistic = more immersive = more rewarding. To me currently the helmsman role (and many of the other roles) are quite boring in them selves, and the only thing that makes the helmsman position rewarding is being a part of the bigger crew. Having grown up with boats, having the vessels in the game move as if they were on rails just feels completely wrong, which detracts from the immersion of the game.

Also consider that I more or less "solved" the problem in a day. It seems to me that this would not be a very development time intensive feature to implent, so the return on investment might be quite good, even though the return it self might not be that great.
neistridlar is offline   Reply With Quote
Old 05-15-20, 12:49 PM   #4
Fidd
XO
 
Join Date: Apr 2005
Location: Blighty!
Posts: 405
Downloads: 10
Uploads: 0


Default

Quote:
Originally Posted by neistridlar View Post
While I agree with you that your other suggestions would be much more interesting game-play wise, there are other factors to consider as well. To me at least more challenging = more rewarding and more realistic = more immersive = more rewarding. To me currently the helmsman role (and many of the other roles) are quite boring in them selves, and the only thing that makes the helmsman position rewarding is being a part of the bigger crew. Having grown up with boats, having the vessels in the game move as if they were on rails just feels completely wrong, which detracts from the immersion of the game.

Also consider that I more or less "solved" the problem in a day. It seems to me that this would not be a very development time intensive feature to implent, so the return on investment might be quite good, even though the return it self might not be that great.
I can't fault your logic there. Maybe your physics model could also incorporate the vertical deviation side of things as well, as an integrated model providing both more work for the helmsman to do, as well as more work for the dive-officer to attain and maintain periscope depth, and to control depth both in response to operating at different depths (and salinity) as well as during DC attacks?
Fidd is offline   Reply With Quote
Old 05-15-20, 04:41 PM   #5
neistridlar
Swabbie
 
Join Date: Mar 2020
Location: Norway
Posts: 11
Downloads: 3
Uploads: 0
Default

Quote:
Originally Posted by Fidd View Post
I can't fault your logic there. Maybe your physics model could also incorporate the vertical deviation side of things as well, as an integrated model providing both more work for the helmsman to do, as well as more work for the dive-officer to attain and maintain periscope depth, and to control depth both in response to operating at different depths (and salinity) as well as during DC attacks?
Yes, the model could be adapted for the vertical as well, or even full 3d, with all the details you mentioned. It would sure be nice if there was something to do for the whole crew at all times.
neistridlar is offline   Reply With Quote
Old 05-20-20, 08:27 AM   #6
GreyLynx
Watch
 
Join Date: Mar 2019
Location: The Great White North
Posts: 18
Downloads: 22
Uploads: 0
Default

IMHO it's important to maintain a reasonable degree of realism in the game/sim by implementing the 1st law of Newton in the code.

Driving a boat on/in the water is not the same as driving a car on the road, or a plane in the air.

In order to counteract inertia, a force must be applied in the opposite direction . Basic seamanship teaches you that if you turn to port, and then bring the helm back to midship position, you'll keep turning for a while until friction stabilizes your course. Or you can bring the helm to starboard (opposite direction) for a short period of time to stop turning more quickly.
The same applies to any movement, like going astern to stop the ship more quickly.

I think there is a lot to gain in having the feeling that you are aboard a submarine that behaves more like a sea-going vessel.
GreyLynx is offline   Reply With Quote
Old 06-01-20, 02:53 PM   #7
Superesse
Seaman
 
Join Date: May 2019
Posts: 34
Downloads: 1
Uploads: 0
Default

I very much agree with OP. More realism when it comes to boat control would be very appreciated. As mentioned, the helmsman role is one of the most boring roles and could potentially be more challenging with better physics.

However, I'm not sure it is as easy as you want it to be with your simulation. To me it doesn't feel very realistic. I do think any step in the direction towards better physics is a good step though!
Superesse is offline   Reply With Quote
Old 06-01-20, 04:33 PM   #8
Onkel Neal
Born to Run Silent
 
Onkel Neal's Avatar
 
Join Date: Jan 1997
Location: Cougar Trap, Texas
Posts: 21,276
Downloads: 534
Uploads: 224


Default

Can't agree more, anything that boost the activity and adds realism is a plus.
__________________
SUBSIM - 26 Years on the Web
Onkel Neal is online   Reply With Quote
Old 06-02-20, 08:42 AM   #9
Fidd
XO
 
Join Date: Apr 2005
Location: Blighty!
Posts: 405
Downloads: 10
Uploads: 0


Default

If pitch roll and yaw of the boat were to be modelled, then it'd be worthwhile having that as a configurable setting. Reason being, if your visual reference is moving with the boat's changes in pitch/roll etc, but you are not physically experiencing it sat at your pc, then for some there will come a point where that mis-match in sensory input will cause nausea and worse!

In fact it's exactly the reverse, but no less powerful, to what happens if you get sea-sick, where you are seeing a "still" boat, but are experiencing a moving one!

So, it needs to be configurable...
Fidd is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:35 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.