- Home /
This question was
closed Aug 31, 2014 at 10:43 AM by
tanoshimi for the following reason:
There is no single "best" way to program A.I. - it's a complex area and far too many factors to consider to offer useful advice here.
Question by
AngryBurritoCoder · Aug 31, 2014 at 10:24 AM ·
c#playeraiperformancedistance
A.I - what is better for player checking ?
I am currently working on a game and came across A.I programming.
Simple question. Is it better to use a Sphere Collider Trigger for player detection or is it better to check distance between player and enemy? Or maybe another alternative route ?
I think sphere collider trigger is better. I will only have 1 - 12 and maybe rarely up to 16 enemies on screen at once that will be active.
Im also interested in any A.I tips/advice anyone has, thanks in advance
Comment
all i asked is if its better to use sphere trigger or distance using vector as in more efficient