Detecting pawns: Sphere collision overlap vs Get all actors of class

Stormrage256
Tue, 24 Feb 2015 14:50:56 +0000
World Creation

Hi, I’m trying to have my AI units (Type A) detect other types of AI units (Type B) within a certain radius. At any time, this check would contain anywhere up to a maximum of 20 units. The map is not open world, and the map size will probably be around 2-5 times the game space in top down template. Also the game is turn based, so I do not need real time checks either. Right now, I could try out a sphere component overlap from each pawn or use the get all actors from class and line trace them. Given the situation, I would like to know which of these methods will be better.

5 posts - 1 participant