Is it possible to get an object (a ball) to follow the curve of another object (a ramp). I have the kids working on a pinball game. I want to be able to shoot the ball and have it follow a curve then start to fall depending on the speed of the shot like the the real thing. [import]uid: 23256 topic_id: 9044 reply_id: 309044[/import]
yes, it is possible, there is a sample bezier code in the code exchange to draw curves, and i also uploaded a tank demo (that follows the curve). from there you can see what I did and use that as a starting point.
or you can wait a few weeks when we have some of the curve code as part of native objects in corona
c [import]uid: 24 topic_id: 9044 reply_id: 33027[/import]
Where would that tank demo be located? The idea is not to have the ball follow a programmed curve but to have the ball track along a curved surface. I could do the program with a static flat surface like the rock bouncing off of the trampoline in the eggbreaker sample but I just thought it would be cooler if it would track around a 90degree curve like a real pinball game. [import]uid: 23256 topic_id: 9044 reply_id: 33085[/import]
http://developer.anscamobile.com/code/bezier-object-along-curves-path [import]uid: 24 topic_id: 9044 reply_id: 33105[/import]