PDA

View Full Version : how can i move a sphere on curved direction?



09-20-2005, 10:57 PM
how can i move a sphere on curved direction? i'm making a football game and i need to know this. please help

09-21-2005, 02:11 AM
There are several ways.

You could use either a sine or a cosine curve to give you the 'height' value you need for the ball, and then the 'length' or distance the ball is kicked depends on how hard you actually want the player to kick the ball.

Alternatively, you could have a gravity variable G which you apply to the height of the ball, and this would give you a nice bounce movement in addition to the curve. :)