Hi,
I am setting up an enemy AI, nothing too fancy for now, I am using unity pathfinding.
When the player trigger the enemy's collider it fires a linecast(the custom action jean wrote) between the player and the enemy and check if there is an obstacle.
The thing is when my Enemy is moving he won't perform the line cast check, since he is already busy moving.
Is there a way to shoot the linecast while performing SetDestination as a Gameobject ? or should another gameobject parented to the Enemy be responsible for this. I would rater not.....
Also what is the difference between the linecast action and nav mesh raycast ? is it similar ?
Thank you
-Yaniv