Post Reply 
[DEMO] Processing Physics
yay! :D
Author Message
lembas
yuri princess

Posts: 4,365.2931
Threads: 184
Joined: 30th Apr 2008
Reputation: -2.56923
E-Pigs: 154.3525
Offline
Post: #1
[DEMO] Processing Physics
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

I'm gay.
Spoiler for online game stuff:
[Image: 76561198003967361.png]
[Image: thelemmingbas.png]
3DS FC: 4184-1632-9353
Spoiler:
[Image: wQZsI.jpg]
Spoiler:
In the words of the wise trademark91:
windows Proud
12/05/2009 08:58 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Mickey
Down with MJ yo

Posts: 3,663.2843
Threads: 251
Joined: 26th Apr 2008
E-Pigs: 28.7300
Offline
Post: #2
RE: [DEMO] Processing Physics
So much fun to play with! 50star.GIF

[Image: MiCk3Y.jpg]

[Image: battle.png]

Spoiler for link:
12/05/2009 09:19 PM
Find all posts by this user Quote this message in a reply
lembas
yuri princess

Posts: 4,365.2931
Threads: 184
Joined: 30th Apr 2008
Reputation: -2.56923
E-Pigs: 154.3525
Offline
Post: #3
RE: [DEMO] Processing Physics
lol, I know.

I love Physics based things.

I'm gay.
Spoiler for online game stuff:
[Image: 76561198003967361.png]
[Image: thelemmingbas.png]
3DS FC: 4184-1632-9353
Spoiler:
[Image: wQZsI.jpg]
Spoiler:
In the words of the wise trademark91:
windows Proud
13/05/2009 12:07 AM
Visit this user's website Find all posts by this user Quote this message in a reply
lembas
yuri princess

Posts: 4,365.2931
Threads: 184
Joined: 30th Apr 2008
Reputation: -2.56923
E-Pigs: 154.3525
Offline
Post: #4
RE: [DEMO] Processing Physics
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

I'm gay.
Spoiler for online game stuff:
[Image: 76561198003967361.png]
[Image: thelemmingbas.png]
3DS FC: 4184-1632-9353
Spoiler:
[Image: wQZsI.jpg]
Spoiler:
In the words of the wise trademark91:
windows Proud
(This post was last modified: 14/05/2009 10:52 AM by lembas.)
14/05/2009 12:01 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: