Small rigid physics demo
Moderator:Moderators
- marshallh
- Moderator
- Posts:2986
- Joined:Sat Sep 10, 2005 2:17 pm
- 360 GamerTag:marshallh
- Location:here and there
- Contact:
I've always wanted to do some sort of physics sandbox to mess around with my own code. Well, the past few days I've written this program which simulates rigid point collisions and gravity.
Keys:
Insert - Add lots of balls
Delete - Remove balls
Arrow up - increase gravity
Arrow down - decrease gravity
Click anywhere in the window to spawn a new ball.
http://retroactive.be/physics.zip
Keys:
Insert - Add lots of balls
Delete - Remove balls
Arrow up - increase gravity
Arrow down - decrease gravity
Click anywhere in the window to spawn a new ball.
http://retroactive.be/physics.zip
psh, that's nothing. Look into a program called phun. that's a full-blown 2d physics engine that allows you to do simple stuff like make circles and squares and free-hand shapes, but also does advanced stuff like hinges, springs, motors, liquids... a whole world of opportunity.
edit: oh, so you wrote this yourself? what language did you use?
do you plan on adding more to it with time?
edit: oh, so you wrote this yourself? what language did you use?
do you plan on adding more to it with time?
- omegabullit
- Posts:132
- Joined:Sun Aug 08, 2004 9:19 pm
- Location:poconos
- Contact:
Re: Small rigid physics demo
I'm interested in what you wrote this in as well. Do you mostly do your development in Windows? Also, I noticed in the show yourself thread you were in college. Where ya at, degree, year, that sort of thing?
<a href="http://www.stephanj.com"><img src="http://www.stephanj.com/pictures/benheckban.JPG"> </a>
- mmoshkowich
- Posts:381
- Joined:Tue Oct 07, 2008 6:52 pm
- PSN Username:mikedacat
- Location:Long Island, NY
Re: Small rigid physics demo
its fun and addicting!
Re: Small rigid physics demo
It's a 5 month old thread!
- mmoshkowich
- Posts:381
- Joined:Tue Oct 07, 2008 6:52 pm
- PSN Username:mikedacat
- Location:Long Island, NY
Re: Small rigid physics demo
somebody bumped it I didn't look at the first date. It was fun any way
Re: Small rigid physics demo
Big bump I know, but you wouldn't happen to still have the source for this, would you marshall?
- omegabullit
- Posts:132
- Joined:Sun Aug 08, 2004 9:19 pm
- Location:poconos
- Contact:
Re: Small rigid physics demo
Hmm, sorry about that. I guess Development Center threads are checked very often, I didn't even notice how old it was.
<a href="http://www.stephanj.com"><img src="http://www.stephanj.com/pictures/benheckban.JPG"> </a>
- marshallh
- Moderator
- Posts:2986
- Joined:Sat Sep 10, 2005 2:17 pm
- 360 GamerTag:marshallh
- Location:here and there
- Contact:
Re: Small rigid physics demo
I ran it today and it ran at 400fps on my new beast graphics card. In literally less than 2 minutes I rigged a ghetto frame limiter to keep it from going too fast.
Dev-C++ to open the project and compile. The new binary is in there also.
http://retroactive.be/physics_src.zip
Dev-C++ to open the project and compile. The new binary is in there also.
http://retroactive.be/physics_src.zip
Re: Small rigid physics demo
I dont want to be the one to super bump this, but i think it is pretty cool. I would love to see this little demo turn into some type of game
ZOMG Legend of Zelda ROCKS!
Re: Small rigid physics demo
It closed out on me, here's the log,
I the "Ball" at the end is what it was.
Code: Select all
Balls: 1101 Frames done: 35
Balls: 1106 Frames done: 35
Balls: 1112 Frames done: 32
Balls: 1117 Frames done: 34
Balls: 1122 Frames done: 34
Balls: 1126 Frames done: 34
Ball
Re: Small rigid physics demo
It's already been done: http://www.phunland.com/wiki/Home" onclick="window.open(this.href);return false;SjBishop wrote:I dont want to be the one to super bump this, but i think it is pretty cool. I would love to see this little demo turn into some type of game
- Kurt_
- Portablizer
- Posts:5748
- Joined:Thu Nov 24, 2005 10:32 am
- Steam ID:kurbert
- Location:Ontario, Canada
- Contact:
Re: Small rigid physics demo
I got phun. It's fun. But I can't figure out how to connect hinges to two objects. I figure it's pretty simple.
Hey, sup?