- Joined
- Oct 29, 2007
- Messages
- 1,184
I need help with calculating a bullet flight line for my third person shooter.
For the bullet itself I am using a unit. When a player fires a shot, the unit is created at the position of the firing player. And a trigger that runs every 0.01 seconds adjusts the flying height and position of the bullet. The players camera angle of attack should determine in which direction (Up/ Down) the bullet should go when the player fires a shot.
I am not sure how to calculate the flying height and the speed of the bullet with aiming up and down. Until now I didn't mind the flying height, so I just had the bullet moved every 0.04 seconds to another location.
I'm really not sure how to do this, that's why I am asking here.
For the bullet itself I am using a unit. When a player fires a shot, the unit is created at the position of the firing player. And a trigger that runs every 0.01 seconds adjusts the flying height and position of the bullet. The players camera angle of attack should determine in which direction (Up/ Down) the bullet should go when the player fires a shot.
I am not sure how to calculate the flying height and the speed of the bullet with aiming up and down. Until now I didn't mind the flying height, so I just had the bullet moved every 0.04 seconds to another location.
I'm really not sure how to do this, that's why I am asking here.