Jump to content
  • Advertisement
DevBlazer

Need help with gas and liquid, physics for a game

Recommended Posts

Hi all, I am currently playing around with making a 2D underwater survival game (pet project, not too serious) but I need someone I can sit with for like an hour or so, to help me flesh out some reasonable mechanics for the behavior of liquids and gases in relation to gravity, pressure, etc. (Sorry guys I totally failed science class and have no intention of studying it now).  There obviously has to be a balance between what I'm willing to code for and realism and then assistance with understanding some mechanics and how their formulas, etc would work.

Again, I'm not trying to recruit anyone here, just looking for someone knowledgeable to have a friendly chat with for a little while.
 

Share this post


Link to post
Share on other sites
Advertisement

I bet if you posted this as a question in the math and physics forum, mentioned the language/engine, you would end up with all the answers you need in no time. ;)  These cats are smart.  Plus I think it's a relatively easy effect to fake from my miscellaneous readings here and there..  You can begin to simulate buoyancy by simply adding an upwards force to the object to negate the effect of gravity, if you make the force proportional to the mass or "composition" of the object then you can make it more realistic.  It might be helpful to lock or to selective lock the rotation of one or multiple axes if you aren't interested in doing a FULL physics simulation to control the object rotation and etc...  But I assume those would be under player control somewhat anyhow.  Another method might be to not use gravity at all and do it like a space simulation, only you would dampen the movement to represent the fluid friction and/or add forces to represent current flow.  Good Luck!

https://www.gamedev.net/forums/forum/7-math-and-physics/

Edited by Septopus

Share this post


Link to post
Share on other sites

Maybe I can help you. Ofcourse I can be caught on some questions but I used to be a thermal analyst (mechanical engineering)  for about 9-10 years on projects from telco, automotive lighting, commercial aerospace and non military D&S (sounds like oxymoron but D&S is the name of branch). 

Edited by Osidlus

Share this post


Link to post
Share on other sites
2 hours ago, Osidlus said:

Maybe I can help you. Ofcourse I can be caught on some questions but I used to be a thermal analyst (mechanical engineering)  for about 9-10 years on projects from telco, automotive lighting, commercial aerospace and non military D&S (sounds like oxymoron but D&S is the name of branch). 

cool tx, I pm'ed

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!