The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

# Thread: Dropping a ball on an uneven surface - physics!

1. ## Dropping a ball on an uneven surface - physics!

I was wondering if anyone could direct me to a physics tutorial on dropping a ball on an uneven surface, for example, a slope or a jagged line. Thus the ball would bounce and change trajectory based on how fast it hit and the angle in which it hit. I'm guessing acceleration, gravity and angle would be the appropriate objectives.

Hopefully there's some code out there that could give me a hand on where to start. Thanks guys!

2. 541
posts
Registered User

My source code is a mess (I wouldn't even recommend looking at it) but it may be a start. Since then I've refined this a lot more and improved and simplified the method.

It's a bit tricky as you need a good understanding of vectors (normals, unit vectors, dot product, projection, etc.) How's you geometry?

You could have a look at this site:

http://www.tonypa.pri.ee/vectors/index.html

The source code (which is in AS1) is all but unusable and there are some small errors in the text which are very confusing. Also, there are better methods to perform some of the effects than it suggests. But it might be a good start if you want to get familiar with the concepts.

There's a lot to absorb but if you take it a small step at a time it's managable.. I'll try and help out if I can

3. Originally Posted by dandylion13

My source code is a mess (I wouldn't even recommend looking at it) but it may be a start. Since then I've refined this a lot more and improved and simplified the method.

It's a bit tricky as you need a good understanding of vectors (normals, unit vectors, dot product, projection, etc.) How's you geometry?

You could have a look at this site:

http://www.tonypa.pri.ee/vectors/index.html

The source code (which is in AS1) is all but unusable and there are some small errors in the text which are very confusing. Also, there are better methods to perform some of the effects than it suggests. But it might be a good start if you want to get familiar with the concepts.

There's a lot to absorb but if you take it a small step at a time it's managable.. I'll try and help out if I can
THANK YOU! Jeez, this is exactly what I needed. And I completely forgot about tonypa's tutorials. You have my deepest thanks, and now I'll lose myself for a few hours in this and peddle through. Just what I needed!

4. 541
posts
Registered User
Ok, glad I could help a little. Let me know if you need any help with these concepts, I'm up to my neck in all this stuff at the moment