- Home /
Best way to do an AI
I am trying to create an AI where if an object come close to the AI object it checks its tag and attacks if is enemy to it. Would a Raycast be the best way to go about this or is there a better way that would detect it easier?
I would do it with sphere raycastig is really expensive
but well with both together you'll receive he cannot see them trough walls, ...
iirc
OnColliderEnter{
// start using raycast
}
$$anonymous$$y game is space based so there will be no walls.
Answer by lancer · Aug 20, 2013 at 11:15 PM
use the RAIN{Indie} plugin from the assetstore, that is what I use for all my AI stuff.
Your answer
Follow this Question
Related Questions
AI Field of vision 1 Answer
Another Raycast Issue. 0 Answers
AI script works, when we add a blocked function it stops working HELP 0 Answers
Need Help making Pong AI beatable 1 Answer
AI raycasting problem 0 Answers