- Home /
Question by
Jens Rasch · Feb 15, 2013 at 04:20 AM ·
raycastaipathfindingartificial intelligence
AI question, characters escaping from light
I want to create an AI that makes characters walk around without walking through each other and other obstacles but when a light spot falls on them they should move away from the spot on the shortest route without walking through each other and other obstacles.
How could I do that?
Comment
You could use a Raycast from the light source. Four to eight rays that frame the circle could be cast. If they hit the AI, the would tell the AI that they were hit.