http://www.chiefdelphi.com/forums/sh...amera+distance
Specifically
Quote:
The camera center to target center formula is similar:
camera to target angle = target pixel * (camera fov angle / camera pixels) - center pixel
Then combine:
bot to target angle = bot to camera angle + camera to target angle
|
This might also be helplful, but it is about how to calculate the angle to which one should fire.
http://www.chiefdelphi.com/forums/sh...e ra+distance