View Full Version : how can i move a sphere on curved direction?
how can i move a sphere on curved direction? i'm making a football game and i need to know this. please help
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. :)
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.