Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Rolling ball physics in 2D, how?

  1. May 3, 2004 #1
    Im creating a little dynamic animation of a ball rolling seen from straight above. I would like the user to input the mass, friction, gravity and initial speed of the rolling ball.

    I wonder how i can simulate this pretty accurate to real world.

    The ball is rolling on a straight line, the x axis, and the animation is running at 60 frames per second.

    I have gravity (9.81), friction, mass (kg), and initial speed (km/h).

    To animate this i need the distance the ball have travelled, measured in pixel (lets say 10 pixel = 1 cm for the example), in 1/60 second (because of 60 fps) to add on ball.x (the balls position).

    So, what is the formula to get distance travelled in pixels with given initial speed, mass, friction and gravity? (in case the user wants to simulate ballrolling on Pluto :tongue: )


    Hope this made sense :)
     
  2. jcsd
  3. May 3, 2004 #2
    Describe the ramp that it's rolling down. Is it a straight incline?

    cookiemonster
     
  4. May 3, 2004 #3
    Yes theres no curve, i was thinking only 100% flat, but to add on a degree for straight incline, where the ball could roll back again could be fun :)

    I thought originally that the ball had an initial speed for starting speed.
     
  5. May 3, 2004 #4
    Now do you want to assume the ball has significant enough size that you need to consider angular energy, as well? Or would you prefer to assume that it is a point particle so you can disregard angular stuff?

    The first is more accurate whereas the second is simpler, but only really an upper bound.

    cookiemonster
     
  6. May 3, 2004 #5
    hmm angular energy, on a ball? im not quiet with you, but in the basics, its defined by one point on the x axis, so that is enough.
     
  7. May 4, 2004 #6

    Integral

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    The question is do you want a rolling motion or sliding? If the ball is rolling to get a decent simulation you will need to account for the Moment of Inertia of the ball and the fact that the rolling ball has angular momentum.
     
  8. May 4, 2004 #7
    Aha, i get it. I guess the Inertia should be in.. but i dont really understand the physics behind it. What determines the Intertia?
     
  9. May 4, 2004 #8
    The distribution of mass.

    See, we're just running around asking questions you'd never have thought about and not actually helping you. Sorry about that. =\

    cookiemonster
     
  10. May 4, 2004 #9

    Integral

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Moment of inertia is determined by geometry. For a sphere

    [tex] I= \frac 2 5 mr^2 [/tex]


    You may want to find a Physic is text (Haliday and Resnick for example). This will guide you to a good solution to your problem. I recommend finding a complete solution in meters then covert to pixels only when it is time to plot on the screen.
     
  11. May 5, 2004 #10
    If I were you, I would work in energy. Ball starts out with some energy 'E'. This will be only potential grav energy if it starts at rest on top of the ramp. Could be both is you have an initial speed. Anyways, you can just sent up energy equations. This will make it easy to include Kinetic, Potential, Inertial, friction and so on. If you are going to make the ball spin and you havent really worked with that subject before then you might want to leave it out. It could get a little tricky putting in spin with friction cause friction wont be sliding, it will be spinning. A few years ago in highschool I spent a lot of time messing around wihjt phsyics in my comp sci class so i have been in the position you are in now.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Rolling ball physics in 2D, how?
  1. Rolling ball (Replies: 7)

  2. Ball rolling down a ramp (Replies: 10)

Loading...