Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

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