Results 1 to 4 of 4
November 22nd, 2009, 11:29 PM #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!
November 23rd, 2009, 02:55 AM #2541Registered User
I recently had a thread about this here:
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:
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
November 23rd, 2009, 06:18 AM #3
November 23rd, 2009, 06:03 PM #4541Registered 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