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.


Results 1 to 4 of 4

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

  1. #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. #2
    I recently had a thread about this here:

    http://www.kirupa.com/forum/showthread.php?t=336839

    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. #3
    Quote Originally Posted by dandylion13 View Post
    I recently had a thread about this here:

    http://www.kirupa.com/forum/showthread.php?t=336839

    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. #4
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012