How to Calculate Bullet Trajectory and Distance in Game Development?

  • Level: Undergrad 
  • Thread starter Thread starter TheDominis
  • Start date Start date
  • Tags Tags
    Ballistics Calculations
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 5K views
TheDominis
Messages
2
Reaction score
0
I'm not sure if this is the correct area to post, but I figure if I'm wrong it'll be moved or something.

I'm working on a game and I need some help with calculating bullet trajectory. I need a formula for where the bullet will be at a certain time based off of the angle it is shot from, power, and anything else I might need. Also I need a formula for calculating the distance the bullet will travel. Any help would be much appreciated.

-TheDominis
 
Physics news on Phys.org
Have a quick google for some of the basic laws of motion. You'll easily find some very common relationships for distance and time in terms of speed, acceleration and gravity.
 
TheDominis said:
I'm not sure if this is the correct area to post, but I figure if I'm wrong it'll be moved or something.

I'm working on a game and I need some help with calculating bullet trajectory. I need a formula for where the bullet will be at a certain time based off of the angle it is shot from, power, and anything else I might need. Also I need a formula for calculating the distance the bullet will travel. Any help would be much appreciated.

-TheDominis

This is probably your best bet:

http://hyperphysics.phy-astr.gsu.edu/hbase/traj.html

CS