The Long Drive

The Long Drive

Liquids Separation Idea
Would be great to implement fluids separation for containers. I think, it's not so tricky to implement.

You can sort fluids by their density. Most dense -> Less Dense (kg/m^3)

1060 Blood
1020 Urine
1010 Two-stroke fuel
1000 Water
959 Diesel
900 Gasoline
872 Oil
785 Alcohol
Values might be inaccurate, I just googled all these things and got values from first links.

And when you pour something out of container - the most dense liquid will go first. Maybe a little bit of less dense liquid could flow out as well.

But if you want to make things more complex - you can make "calm state" of containers. If velocity is more than N m/s - container's "calm state" decreases. In this case liquids flow will be much more mixed, than in calm state. I hope you are following the idea.

But then we have another complex thing - draining liquids with siphon hose. I think, we could simplify it and make this mechanic work the same as manual pouring.
BUT if this is a barrel - lower hole will drain more dense liquids, higher hole - less dense. It's easy to compare their Z coordinate

There is still a lot of room to think about different ideas how to implement this feature and what mechanics to add, but IMHO, these 3 are the most basic AND needed
< >
Showing 1-3 of 3 comments
TheWireBoundPony Jan 3, 2021 @ 7:11pm 
No idea how fluids in containers are currently implemented, but this sounds like a pretty stable way to achieve separation. As you described, it's not that difficult in code either (unless fluids are a mess in code already). The frustration of trying to perfectly separate 2 fluids using your method would fit the game as well.

Imagine trying to pour gas out of a container without pouring the water out. You have to move the can to empty it, increasing the "calm state." This would make perfect separation nearly impossible, but would allow it to be 'good enough.' Amazingly effective, terribly frustrating, and absolutely in the spirit of the game.
Originally posted by TheWireBoundPony:
No idea how fluids in containers are currently implemented, but this sounds like a pretty stable way to achieve separation. As you described, it's not that difficult in code either (unless fluids are a mess in code already). The frustration of trying to perfectly separate 2 fluids using your method would fit the game as well.

Imagine trying to pour gas out of a container without pouring the water out. You have to move the can to empty it, increasing the "calm state." This would make perfect separation nearly impossible, but would allow it to be 'good enough.' Amazingly effective, terribly frustrating, and absolutely in the spirit of the game.

Currently liquids are simple as could be. If you have 60% gas and 40% water - you will pour in another container literally the same proportions. Simple, but not flexible or controlable in any way.

And thanks for liking idea, glad to hear :3
TheWireBoundPony Jan 4, 2021 @ 4:46pm 
Originally posted by St.Cost:

Currently liquids are simple as could be. If you have 60% gas and 40% water - you will pour in another container literally the same proportions. Simple, but not flexible or controlable in any way.

And thanks for liking idea, glad to hear :3

In theory they're simple, but idk what kind of spaghetti code might be behind the curtain. Just pondering aloud. If I get some time, I might begin writing a proof of concept mod of this.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Jan 2, 2021 @ 7:20am
Posts: 3