Slider-Collision Simulation

user_icon BATzerk shared it 7 months, 2 weeks ago
243 views, 4 people love it, 23 downloads, in 3 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

Masterock Masterock 4 months ago

cool

(view all replies)
Comment Reply

beandude202 beandude202 4 months, 4 weeks ago

thats cool!

(view all replies)
Comment Reply

BATzerk BATzerk 6 months, 2 weeks 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!

(view all replies)
Comment Reply

BATzerk BATzerk 6 months, 2 weeks ago

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

(view all replies)
Comment Reply

Lucario621 Lucario621 6 months, 2 weeks 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.

(view all replies)
Comment Reply

Lucario621 Lucario621 6 months, 2 weeks 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.

(view all replies)
Comment Reply

Lucario621 Lucario621 6 months, 2 weeks 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.

(view all replies)
Comment Reply

Paddle2See Paddle2See 6 months, 2 weeks ago

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

(view all replies)
Comment Reply

BATzerk BATzerk 7 months, 1 week 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!

(view all replies)
Comment Reply

MyRedNeptune MyRedNeptune 7 months, 1 week ago

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

(view all replies)
Comment Reply

chalkmarrow chalkmarrow 7 months, 2 weeks ago

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

(view all replies)
Comment Reply