SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Bug Reports (2.0.X) (https://mb.srb2.org/forumdisplay.php?f=88)
-   -   Confirmed A_FindTarget and A_FindTracer ignore vertical position (https://mb.srb2.org/showthread.php?t=37817)

742mph 08-08-2013 09:07 PM

A_FindTarget and A_FindTracer ignore vertical position
 
I'm not sure if this has already been reported and corrected for 2.1, but A_FindTarget and A_FindTracer don't seem to use the 3D distance between objects to determine which are closest/farthest, only the horizontal 2D distance. For example, I was testing out an object that used A_FindTarget to lock onto the nearest enemy of a certain type, but if I stacked two of that enemy so that one was directly on top of the other, the object would always lock onto the lower of the two, even if it was at the exact same height as the higher one. After looking at the code for A_FindTracer, I discovered that it had that issue as well. This can be a problem in FOF-heavy levels/levels with directly vertical segments, so I'd appreciate it if it could be corrected.


All times are GMT. The time now is 01:54 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.