Best way to find closest object
Posted: Tue May 12, 2015 4:47 pm
Hey. Actually i'm working on online game with physics on server side. There are players and mobs. I want to implement agro system of aggression for mobs.
It means that when some player is nearing to mob at certain distance - mob have to start hunt on player.
What is the best way to implement it? Just checking distance between mob and each players or using something like a trigger?
p.s. sry for my bad English
It means that when some player is nearing to mob at certain distance - mob have to start hunt on player.
What is the best way to implement it? Just checking distance between mob and each players or using something like a trigger?
p.s. sry for my bad English