Posted By: Liamissimo
Stupid crosshair - 01/24/11 23:02
Hey Guys,
I need your help. I already checked out many crosshair examples, also from the aum. But I have a barricade in my head. I have a crosshair in the middle of the screen and an object who should shoot at the crosshair. Crosshair is a panel and I know I have to use vec_for/to_screen but I just don't get it, barricade, as I said
I just have to calculate the direction vector from my camera.x to the 2D Crosshair and use vec_diff to adjust the bullet to this position?
I need your help. I already checked out many crosshair examples, also from the aum. But I have a barricade in my head. I have a crosshair in the middle of the screen and an object who should shoot at the crosshair. Crosshair is a panel and I know I have to use vec_for/to_screen but I just don't get it, barricade, as I said
I just have to calculate the direction vector from my camera.x to the 2D Crosshair and use vec_diff to adjust the bullet to this position?