I have started learning OpenGL since 2 months. I am making one Basketball game where my aim is once user drag the ball and leave then it need to reach in basket or miss, depending upon parabolic equestion. So I am trying to move the object in Parabolic shape,I could draw the parabola but could not move the object so can anybody suggest how to move the object in parabolic shape.

Thanks
Girish

tonyo_au

02-08-2014, 06:13 PM

have a look at glTranslate - this is the basic function you need to move an object

Girishentc

02-08-2014, 07:11 PM

Thanks For the reply..I am already glTranslate to move an object in x and y direction. But once I put the for loop to move an object in paraolic shape then sometimes window goes blank or geting unpridictable behaviour. Here is my function which draws sphares in parabolic Sphere but it does not move in prabolic shape. Can you please help me in this....

Thanks For the reply..I am already using glTranslate to move an object in x and y direction. But once I put the for loop to move an object in parabolic shape then sometimes window goes blank or geting unpridictable behaviour. Here is my function which draws sphares in parabolic shape but it does not move in prabolic shape. Can you please help me in this....