I'm writing a video game. For the AI i need to be able to calculate the proper initial velocity for a given angle to hit a target a certain x,y distance away. I don't want to use time in the formula. Does any one know a formula for doing this? I found something about a "gunnery law" that looked similar to what i needed, but i couldn't find the formula. Any help would be appreciated since i'm a programmer and not much of a physics person. Thanks.(adsbygoogle = window.adsbygoogle || []).push({});

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Projectile for a game

**Physics Forums | Science Articles, Homework Help, Discussion**