detect closest object
i've been trying to figure this out and cant for the life of me. I need for one actor to continuously check to see which of another set of actors is closest to it. i suspect its one of the extrapolate but....the math seems to be beyond me atm.
any suggestions?
any suggestions?
Comments
Not sure if it would be more efficient than everything constantly monitored
Kipper
thats whats bothering me.
sqrt((( self.TargetX - game.Gunx )^2+ (self.TargetY - game.Guny)^2)))
thx