i'm making a flight-sim-esque game, and i'd like to be able to draw a 2D box around an enemy when it crosses near the aiming reticle, as part of the HUD. i've seen this done in first-person-perspective games, and it does a lot to help with visibility, especially aginst busy backgrounds.
problem is, i've no idea how i'd go about this. i was thinking maybe it would be possible to use the (extended command) EntityRadius() to approximate how big the object is, then factor in the object's distance from the camera, and draw a box that way. but i'm not real sure how well that'd work.
has anyone done anything similar who could offer some advice?
problem is, i've no idea how i'd go about this. i was thinking maybe it would be possible to use the (extended command) EntityRadius() to approximate how big the object is, then factor in the object's distance from the camera, and draw a box that way. but i'm not real sure how well that'd work.
has anyone done anything similar who could offer some advice?