Slider-Collision Simulation

Your browser needs java to view projects. Click here to install Java.

user_icon BATzerk shared it 2 years, 1 month ago
692 views, 6 taggers, 26 people love it, 91 downloads, in 10 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
smrgnbrg smrgnbrg 3 months, 4 weeks ago

this is awesome.

All4one All4one 7 months ago

Hey try -5 friction, 200 Blue Size, and 88 Green Size. And hit the green hard. It comes out really funny.

joeyman joeyman 1 year, 2 months ago

I love it! :D

keller keller 1 year, 3 months ago

lolz i make friction -5 and the balls went faster and faster ant then i made blue ball small and green ball disappeared

DarthPickley DarthPickley 1 year, 3 months ago

its fun when you have negative friction. touching something makes you speed up

ennaburn ennaburn 1 year, 4 months ago

I just like to fling the balls its super kol!

wigwamking wigwamking 1 year, 5 months ago

cool. look at my games awesome =D

gman2008 gman2008 1 year, 5 months ago

awesome game now try my domino animation (link to project)">(作品链接)

smarty5000 smarty5000 1 year, 5 months ago

Ilove it

mudkip mudkip 1 year, 5 months ago

wow... that's awesome! The only issue I can see is that the collisions aren't always perfect. What I generally like to do is to have the collider point in the direction of the object its colliding with, take 90 - (that direction), then take the sin and cos of that angle times the magnitude of the velocity (i presume you're using the law of conservation of momentum?), and then set those values equal to the y and x velocities, respectively. Your project is very good; keep up the good work!

sassy08 sassy08 1 year, 5 months ago

I dont get it

AlexJ AlexJ 1 year, 5 months ago

(link to project)">(作品链接) < Cave of spikes, an awesome game! if you liked my 50 second dojo you'll L♥O♥V♥E this game!!! game updated, in a few mins/hours there will be a try again button.

Crazygrl Crazygrl 1 year, 5 months ago

It is quite fun! :)

byi byi 1 year, 5 months ago

awesome

mrguy740 mrguy740 1 year, 5 months ago

dat cool dat is

Smily765 Smily765 1 year, 5 months ago

Ace!:)

poopoo poopoo 1 year, 5 months ago

SWEET GAME! u pwn

farthead farthead 1 year, 5 months ago

Awesome game! Please check out my projects.

Silverkey17 Silverkey17 1 year, 5 months ago

Wow, Amazing and awesome! :D

joeyman joeyman 1 year, 5 months ago

COOL!

pieclip pieclip 1 year, 5 months ago

You take a whole hour to make these?! Now I know how you make so good math projects.

Dastyruck Dastyruck 1 year, 5 months ago

not too bad

leteuila leteuila 1 year, 5 months ago

very cool! i doubt i could do something like that!

BiggerT BiggerT 1 year, 5 months ago

draw faces on them!!!

dudeling dudeling 1 year, 5 months ago

Very nice! the lags kind of need to be smoothed out like if you drag it into the side to far it just goes nuts! (this would make an AWESOME scrolling game)

HarryPotterGal HarryPotterGal 1 year, 5 months ago

(link to project)">(作品链接)

HaloGirl HaloGirl 1 year, 5 months ago

This is a very neat project. I like it!

redsooty9 redsooty9 1 year, 5 months ago

wow very clever

SquirrelMan SquirrelMan 1 year, 5 months ago

If you play my games and leave an honest comment, I will play yours and say "I love It"

04lukeb 04lukeb 1 year, 5 months ago

very good. Its like iphysics on my iphone.

SquirrelMan SquirrelMan 1 year, 5 months ago

cool. Play my llama game its cool

Ketchup13 Ketchup13 1 year, 5 months ago

wow! thats amazing! please make the shell mario game out of this!

maxafin maxafin 1 year, 5 months ago

a fun fughting game 2 player (link to project)">(作品链接)

s_federici s_federici 1 year, 5 months ago

sorry, I feel dumb but... how does it work?!?!?

Youssef900 Youssef900 1 year, 5 months ago

cool!!

Paddle2See Paddle2See* 1 year, 5 months ago

Very realistic!

mily mily 1 year, 5 months ago

pretty

billyedward billyedward 1 year, 5 months ago

(link to project)">(作品链接)

billyedward billyedward 1 year, 5 months ago

3 words. I LOVE IT!!!!!!!!!!!

bubble-07 bubble-07 1 year, 5 months ago

Good! I know how to a glitch, though. (It's how when you launch it slighty to the right or left of the other ball at a direct angle, it just reverses direction.) How you would fix it would be that you would have a multi-colored strip that would act as a collision masking sprite. You would make it so it always pointed twoards the other ball, but stick to the one it was masking. That way, when something collided, It would be able to sense the difference, via color sensing.

bosox397 bosox397 1 year, 5 months ago

sweet (link to project)">(作品链接)

Ellie999 Ellie999 1 year, 5 months ago

So cool! I love it!

Cyclone103 Cyclone103 1 year, 5 months ago

lol cool!

bosox397 bosox397 1 year, 5 months ago

hey could check this out and tell me if its good? (link to project)">(作品链接)

Masterock Masterock 1 year, 10 months ago

cool

beandude202 beandude202 1 year, 11 months ago

thats cool!

BATzerk BATzerk 2 years ago

Lucario-- I'm currently working on (starting) a version that uses sine and cosine to calculate the collision normals and whatnot for when the balls glance. (This is why I've been trying out projects that generate sine and cosine.) My issue is conserving momentum. And/or kinetic energy. Oh, I'll get around to it when I have time... but don't expect it too-too soon!

BATzerk BATzerk 2 years ago

Paddle2See-- sure, you may use that part of my code if you'd like, but make sure to give me credit for it!

tycoon32 tycoon32 1 year, 5 months ago

have u heard of the reply thing that i am using right now?

Lucario621 Lucario621 2 years ago

Ya there are also some other glitches. if you click and hold (green/blue) and hover it over the (opposite color) ball fast and a lot wiht out letting go, that other ball will move. ALso (this works better if you download it) If you hold any ball and hold it and move it around a lot, then stop still and let go it starts moving. SERIUS, I MOVES IT AROUND A LOT THAN A I MOVED MY MOUSE INTO ONE PLACE AND STOPPED PERNAMENTLY AND LET GO AND IT MOVES AS IF IT CHARGES BY MOVING.

Lucario621 Lucario621 2 years ago

Hey I got an idea. get another ball and add momentum. you know, if they are all beside each other and you hit(other then the middle one) one against the middle one, then one on the other side moves and not the middle one because it transfers energy. Now that would be hard.

Lucario621 Lucario621 2 years ago

I bet he would Paddle2See. But I think the physics are great. Ya, the bouncing physics that you use in your programs are not the best but I mean thye are hard to do it right! But they still look good for naked eye.

Paddle2See Paddle2See* 2 years ago

I love your mouse-velocity sensitive initial slider velocity! Wicked clever! Mind if I borrow it for something I'm working on?

BATzerk BATzerk 2 years, 1 month ago

Thanks! ...Yeah, a major factor that makes this a little lacking in the Realism Department would be changing the collision factors depending on WHERE the sliders strike each other. It's close enough as is for it to look okay, but I REALLY want to make a version where both kinetic energy is conserved completely AND where the sliders react differently depending on where they collide with one another. (I've never taken a physics course in anything like that, so I'd need to teach myself how to do it.) ...But I'm glad you like it, anyway!

MyRedNeptune MyRedNeptune 2 years, 1 month ago

I agree with Chalkmarrow, the phisics are very close, but it needs a little more work. But it's still very, very good... :)

chalkmarrow chalkmarrow 2 years, 1 month ago

Good start. The physics are close; if you play with it a bit more it should be what you want.

Please Wait...