# Anyway to simulate vacuum?

**URL:** <https://forum.kirupa.com/t/anyway-to-simulate-vacuum/301863>\
**Category:** flash\
**Created:** [December 17, 2009, 12:00am UTC](https://forum.kirupa.com/t/anyway-to-simulate-vacuum/301863 "2009-12-17T00:00:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [December 17, 2009, 12:00am UTC](https://forum.kirupa.com/t/anyway-to-simulate-vacuum/301863/1 "2009-12-17T00:00:49Z")

</div>

I posted this on the Box2D forums as well, but thought I’d at least give it a shot here too.

The project I’m working on allows users to build their own contraptions by cutting out and designing pieces, and then assemble them all together into a machine.

Now, one of the basic machines will be an air pump. I should be able to simulate air pressure moving out of the pump as several small circles, all crowding each other, however, I want a “flap” to open drawing in new air once the air has been pushed out. Here are a few (crappy) images describing the process.  
 ![](http://forum.kirupa.com/uploads/kirupa/6019/f0350af0a4af4b1b.jpg)  
 ![](http://forum.kirupa.com/uploads/kirupa/6020/2344a30b34e75255.jpg)  
 ![](http://forum.kirupa.com/uploads/kirupa/6021/ef9c68ad6d052071.jpg)

Any ideas or workarounds? Any other libraries out there that can simulate this?  
It’s just for a game, so it doesn’t need to be exact, just believable.
