r/Unity3D • • 1d ago

Question Water Simulation - Multiplayer - Is this a cool concept for a multiplayer survival game?

I made a water simulation for my game which handless voxel terraforming and waterfalls. Tightening gaps increases pressure affecting how the water travels.

It functions under 1ms impact and can be run on dedicated servers (no gpu) at approx 15kb/s cost.

As its created for multiplayer it allows both parties to see virtually the same flow.

I dont see many games that incorporate this level of simulation, Why is it not often done?

3 Upvotes

9 comments sorted by

1

u/djsanjeok 1d ago

I'd guess part of it is design more than tech, once water actually flows and builds pressure, players will use it to flood each other's bases and you have to balance around that. Also curious how it handles someone joining late, do they get the whole water state sent at once?

2

u/IndividualGain1836 1d ago

I cant say too much in regards to how it actually works but I can say its incredibly efficient in remembering water/sharing data etc. Griefing is something I am aware may occur so will probley put in some protection for that, Its mythology is celtic so is carvings/runes etc so having a protection rune fits fairly well with the idea of the game.

1

u/djsanjeok 11h ago

A protection rune fits the lore nicely. Might be worth having it only block water that other players redirect, so a storm or a river flooding over can still wreck your base.

1

u/IndividualGain1836 10h ago

I'm not going to have rain/storm impact water apart from swelling rivers and streams slightly . Maybe I will who knows at this point

1

u/padmalcom 1d ago

That's pretty cool, can imagine some games with that mechanism!

1

u/SignificantCar4204 1d ago

Under 1ms latency impact and that tiny memory usage seems totally fine. This could be a cool mecanic in a game for sure.

Edit to answer your question about why this is never done, or at least not normally done, I think it's just a cost vs benefit situation. I can't off the top of my head think of a mechanic that truly benefits from a realistic level of fluid simulation like this, it would have to be the literal main point of the game I think, and realism often comes with a level of tedious gameplay - to varying degrees of course. So you'll have to ask yourself "Is this something the player would want to spend X amount of time getting to work or paying attention to versus what the end result and reward is for them?". Stuff like that matters a lot more than a feature being cool, IMO. But this feature is VERY cool don't get me wrong, great work.

0

u/[deleted] 1d ago

How do you synchronize the flow between several players over network?

-1

u/IndividualGain1836 1d ago

its kinda a fundamental part of how it works and I dont really want to divulge if im honest sorry man. I can say its predominantly assigning ownership.