Python Forum
Ball bouncing down a ramp - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Ball bouncing down a ramp (/thread-15792.html)



Ball bouncing down a ramp - Envyiae - Jan-31-2019

Hello, this is a homework assignment and I just dont understand much about python. If anyone can help get me in the right direction that would help a lot. How would I program a ball to bounce down a ramp and to be able to input the ramps height and length, while also calculating the amount of times the ball bounces on the ramp.


RE: Ball bouncing down a ramp - ichabod801 - Jan-31-2019

What have you tried? We're not big on writing code for people here, but we would be happy to help you fix your code when you run into problems. When you do run into problems, please post your code in Python tags, and clearly explain the problem you are having, including the full text of any errors.


RE: Ball bouncing down a ramp - marienbad - Jan-31-2019

Read this and use it: http://www.petercollingridge.co.uk/tutorials/pygame-physics-simulation/