Balloon Physics

7 posts / 0 new
Last post
toolazy
Balloon Physics

I'm poking around in game maker and just to help me learn I want to make a balloon with changeable variables and 1 button pump. I'm sure there's a physics buff somewhere in this community; how does the volume of the balloon tie into it's internal pressure and the elasticity of the rubber?

Another Canadian Guy
Another Canadian Guy's picture

I don't know if this will help but I remember this artist known as "Doom-The-Wolf" who(m?) did interactive animations where inflation was the subject manner and it looked like it had physics to it. Perhaps you can study that or ask him about that?

(Not on here too often, replies might be slow.)

Margeret Moonlught
Margeret Moonlught's picture

Ehhhhh I don't know about asking Doom himself. I mean the man is a legend, Yes, But also he's kind of a prick. Besides he has tutorials for this anyway, Do that, Don't ask him.

BI.org’s very own metamorphic incomprehensible memetic fractal entity 

NameTaken
NameTaken's picture

As you put air into a balloon, the volume increases to maintain a constant pressure. However, this increases the strain, and once strain reaches a certain point, the rubber fails and the balloon pops.

 

Dunno if you want exact numbers or a stress/strain curve of rubber or anything, but that's basically how a balloon works.

Lopni

 

 

you can do it in a variety of ways:

1. honest physics. just open wiki ^_^

2. invent your own fantasy physics - for example, 1 PUFF of your pump is 10 pixels of image growth. Also, since the image doesn't move when it stretches, you'll need to move left corner upwards by 5 pixels and to the left by 5 pixels

3. You can take free, open-source VSG instead of paid or cracked Game Maker. Since VSG is available freely, you can distribute only your scenario in a tiny archive on your terms. VSG already has a detailed inflation simulation with most of the variables you mentioned. All you need is to add a story and characters. Just message me if you need any help ^_^

toolazy

1. Yeh I have been trying that for a while but this is my 4th 60 hour working week in a row and my mind feels like treacle. Thought I'd try asking for help; I used to be a physics buff myself and made an equation that tie together the number of moles, pressure, elasticity and radius of a sphere. Alas that was almost a decade ago.

2. I'm kinda planning on making up my own units just to keep the programing simpler.

3. Game maker studio is free and legal, it doesn't have all the bells and whistles of the paid versions but they didn't look like important this to me. I dunno what VSG is, drop a like please, I'll have a poke around in it.

Lopni

Ouch 60 hours hurts! Please do care for yourself well.

 

VSG's right here: https://yadi.sk/d/qwfTtx-bqbjiH

Take any scenario.txt and delete all text from it, instead put two lines:

Let PCimage On

Let Items On

That'll show your character and a few pumps. That's all - VSG already knows what is inflation. Tap or click those pumps, and balloon will inflate

 

Later you might create your own scenario the way you like - change pump's flux, draw your own balloon, ask player questions... If you meet any difficulty experimenting, just let me know. It's faster than reading the manuals:

FAQ: http://fav.me/d9ironx

How to make your scenario: http://fav.me/d9qkwxm

Some more commands: http://fav.me/d9bai9m