I'm trying to make a 3D game of pool/billiards for a university project. I'm not a great programmer to start with so I'm struggling a lot.
Currently I have a basic table set up with all of the balls in place. The camera is positioned behind the white ball (sort of like a first person view looking down the table) and this can be rotated around the white ball (always looking at it) using the keyboard. Its sort of like an aiming system but the problem I have is that I need the ball to move in the direction the camera is facing (where the user is aiming the ball). I only know how to translate the ball in either the x,y or z direction but don't know how to specify the direction the camera is facing.