I'm writing a first person shooter game, and I've got so far. I'm now trying to develop the code that shoots a bullet.
I know what the co-ordinates of A are (this is where the character is standing), and I'm trying to work out what the co-ordinates of F are (the direction of the bullet is length C, I know what this is too) - to do this I need to find out what the lengths of D and E are. I know what angle B is in degrees.
Can anyone please provide me with a formula that can fill the gaps in (D and E)?
A = Where character is stood (I know the co-ordinates) B = Angle (I know the angle) C = Direction of bullet (I know the length) D = I don't know this E = I don't know this F = I need to know D and E to find out what these co-ordinates are