Endless Paradigm

Full Version: [DEMO] Processing Physics
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
A simple Processing demo using the PPhys2D Library.

czech it out. :D

Quote:Controls:
Arrow Keys: Move the blue box.
Shift + Arrow Keys: Boost.
Mouse Click: Create a randomly colored box. Size is a random number between 5 and the value of the 'Max Box Size' slider.
Space: Set the location of the blue box to where the mouse is. Useful if the box goes off the screen. (Note: The box's velocity is unchanged. If it's moving fast, it'll be moving fast when it appears at the mouse coordinates.)
R: Resets all the sliders to their default value.

Sliders:
Gravity:
Pretty self explanatory. Positive values, stuff goes down, negative, stuff goes up, zero, stuff floats around.
Shift Force: Determines the amount of the boost.
Max Box Size: Determines the max of the randomly generated numbers to get the size of new boxes.
Friction: A higher friction means that touching bodies will loose energy, and will result in a "sticky" effect.
Restitution: Set the restitution of the edges, which define itself by the "spring" effect occurring when two bodies. A value of 1 would be a pool ball. The default is 0, which mean no restitution.
Damping: Damping is the effect of "air" on a body. The more damping you have, the more energy lost you will get, resulting in an impression resistance to the gravity effect. Use this function to adjust the damping of all bodies, wich will make it fall faster or slower.


[Image: Screenshot-lolphysics.png]

Applet Version:
http://www.tacticalbread.net76.net/PROGR...olphysics/

Download:
http://www.tacticalbread.net76.net/PROGR...hysics.rar
So much fun to play with! 50star.GIF
lol, I know.

I love Physics based things.
seeing as my site is down now, due to one of my host's servers taking a spoon, here's a link for the application version:
http://www.mediafire.com/download.php?j23oznuzanz


edit: site's back up.

Applet:
http://www.tacticalbread.net76.net/PROGR...lolphysics

Application:
http://www.tacticalbread.net76.net/PROGR...hysics.rar
Reference URL's