Hi I am making a game which I have a to kick a football against a wall which contains 3 hoops with different scores in them, depending on hoop the ball hits the score will differ. e.g. 3, 4, and 5 points.

My problem here is I cannot translate the ball towards the z axis in orde to hit the wall.

In order to translate the user uses glutKeyboardFunc

The game is controlled with the following keys: -

- left key - to aim the ball left
- right key - to aim the ball right
- up key - to aim the ball up
- down key - to aim the ball down

Hi sorry if its not clear here it goes again ... My problem here is I cannot translate the ball towards the z axis in orde to hit the wall.

You didn't clarify anything. You just restated it, almost verbatim.

"I cannot" doesn't tell us anything about "why" you cannot. Do you have a computer with a GPU? Do you know how to program? Have you read anything about OpenGL? What have you tried? Let's see some code. Have you read up on how MODELING and VIEWING transforms work? Have you figured out which API calls you need to make to set those properly? Are you getting an error? What exactly are you getting? etc.....

I want to be able to use collision detection in order to detect if the ball hits the wall (GL_QUADS) if it does I want it to return back to its original position. The ball travels towards the Z axis in order to get to the wall using glTranslate();