flabbyrabbit 500+ Club

Joined: 25 Jan 2007 Posts: 567 Location: UK
|
Posted: Thu Jan 25, 2007 2:19 pm Post subject: Rolling a ball down a slope. |
|
|
I have been working on a new game for some time and have already worked out how to roll a ball down a simple 45' slope and was wondering if anyone had a way of working out the movement on a more complicated slope.
I am planning on making a game where the user draws a line on the screen and the ball drops on to the line and rolls down it. The aim of the game being to get the ball to a certain point. I have already coded the drawing of the line and the have got the ball to fall. At the moment i have only got a simple output saying if the ball is touching the line which works fine, but the ball drops straight through the line.
Anyone got any ideas? Any help would be much apreciated. I have been struggling for some time and would really like some help.
Flabby Rabbit |
|