Original Post — Direct link

I know it's just a game but hear me out. In real life, when a submarine changes depth, the entire submarine will angle itself upwards/downwards almost 45°, forcing the crew to brace themselves while it moves. It looks pretty funny as a bunch of people practically lean on the floor to keep themselves upright. Looking like a bunch of Michael Jackson's leaning around the deck.

How possible would it be to bring this experience into Barotrauma? Perhaps, only during rapid/aggressive maneuvers, the sub would angle strongly and force the whole crew to adapt to the rocking of the ship while they conduct their tasks/fight monsters/try to repair/etc. It would incentivize the captains to navigate more responsibly and cause some hilarious scenarios when they don't.

The one BIG drawback I see in this is the sub potentially becoming stuck at such an extreme angle that players can't move, or even possibly trapping them. But, that could also easily be prevented by setting a maximum/minimum angle the subs are capable of achieving, so no matter what players can always at least walk around, even at its steepest angles.

Oh, AND, it would let nimble captains take some of the longest vessels through otherwise impassable gaps in terrain by angling the ship to slip through. That'd be really neat.

External link →
almost 5 years ago - /u/Regalis11 - Direct link

Originally posted by The_Chonto

Maybe. It seems to me that the submarine currently has 1 center of gravity as it moves and rocks. As of now, the sub does angle a bit.

To implement, it would need 2 centers, or rather, 2 foci as in an ellipse. It would then move along those two points instead when angling itself.

But idk shit about the game's code. It's best to leave that up to the devs to decide.

It would be quite tricky the implement because all the structures and items in the submarine are defined using axis-aligned bounding boxes, and there's lots of logic in the code that assumes the submarine and the structures are always axis-aligned (i.e. not rotated).

Currently the submarine doesn't actually rotate in any way - when you hit a rock, we rotate the camera instead of the sub to fake the impact. It does work quite well though, it seems that practically no-one has noticed that it's faked. So it could be possible to add some subtle rocking when maneuvering the sub with the same method. :)