Work in Progress

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Work in Progress

Post by chili » July 21st, 2012, 6:37 am

Just faffing about with physics and classes.

Edit: added a new version, check it out. 8-)
Momentum.zip
(11.45 KiB) Downloaded 614 times
AngularMomentum.zip
(16.56 KiB) Downloaded 534 times
Chili

User avatar
Asimov
Posts: 814
Joined: May 19th, 2012, 11:38 pm

Re: Work in Progress

Post by Asimov » July 21st, 2012, 10:00 am

Hi Chilli,

That is really cool. I love the way your balls jiggle LOL.

Asimov
----> Asimov
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk

User avatar
viruskiller
Posts: 399
Joined: June 14th, 2012, 5:07 pm

Re: Work in Progress

Post by viruskiller » July 21st, 2012, 4:01 pm

think this is more like a slow motion nuclear fusion animation lol,i ran it for like 3 min and 2 circles collided so hard they remained linked together lol:))

wish chili would post the source too:D that would be something interesting to look at:)

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: Work in Progress

Post by LuX » July 21st, 2012, 10:22 pm

Way to go stealing chili's idea on the bouncy balls, heh-heh-heh. Anyways, I revised my collision code so that the balls bounce off each other realisticly as well as transferring kinetic energy properly.

So now if a ball hits directly in front, all the energy will transfer, and the hit ball will move forward. However, if a ball hits in an angle only some of the energy is transferred and both balls will carry on their way. So if they hit at 45 degrees for example, the energy will split, and both balls carry on on opposite ways like an "Y". Or at 90 degrees the hit ball will carry on at 90 with only little energy, while the other ball will continue at almost the same angle. ....You'll see.

To launch the ball hold over it and drag the "energy" bar. The ball will turn darker red, the more speed it has. When you release it will fly off. Note that at maximum speed it will sometimes ignore collision.

Also, just to get to the billiard feelin' press "S" to place the balls in a triangle. Or "R" for random motion.
RealisticBiljard.rar
(14.24 KiB) Downloaded 431 times
Small mod. Looks SOOO AWESOMEE! : -D
Electro Billard.rar
(24.83 KiB) Downloaded 425 times
ʕ •ᴥ•ʔ

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Work in Progress

Post by chili » July 22nd, 2012, 2:44 am

Lol, it's like you read my mind LuX.
I was thinking of posting a challenge to anyone to make a similar physics simulation. Pretty good work brah. You said that the new version has more realistic collisions; I didn't even notice that the only one didn't have that. :P

But I'm just getting warmed up. I'm working on something else (which was the real problem I was trying to solve), and hopefully I'll have it done in a couple of days or so.

Are you ready for round two? 8-)
Chili

User avatar
Asimov
Posts: 814
Joined: May 19th, 2012, 11:38 pm

Re: Work in Progress

Post by Asimov » July 22nd, 2012, 2:55 am

Hi Chilli,

I am afraid I am better at the graphics side than the maths side. I agonise over doing stuff like this and would probably spend weeks trying to make it work LOL.

I know that when two balls hit each other velocity would be momentarily increased, but I have no idea about how much.

Anyway back to my score system ahem ;)

Asimov
----> Asimov
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Work in Progress

Post by chili » July 22nd, 2012, 3:39 am

No worries Asi, we all have our strengths and weaknesses.

I couldn't make a slick menu like you did for you game, nor could I make all those sweet CG game assets. :)
Chili

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Work in Progress

Post by chili » July 22nd, 2012, 9:06 am

Added angular momentum to the simulation. Check the post at the top of this topic for the new download.

Care to give it a shot LuX (or anyone else who's interested)? ;)
Chili

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: Work in Progress

Post by LuX » July 22nd, 2012, 9:52 am

I'll give it a shot later. Already have a rectangle drawing function that can be rotated from the center, so I have a small head start.
chili wrote:You said that the new version has more realistic collisions; I didn't even notice that the only one didn't have that.
I deleted my older post, so dunno if you had a chance to try it out, but there the collision was not too realistic. Like this:
Collision1.png
Collision1.png (11.44 KiB) Viewed 7579 times
The new one, right now looks like this:
Collision2.png
(13.32 KiB) Downloaded 576 times
ʕ •ᴥ•ʔ

astr0
Posts: 87
Joined: July 21st, 2012, 8:43 pm
Location: Serbia

Re: Work in Progress

Post by astr0 » July 22nd, 2012, 11:33 am

chili wrote:
AngularMomentum.zip
awesome
Programming is my art.

Post Reply