Question by
NeoMossback · Jun 15, 2018 at 07:31 AM ·
linecast
Make linecast ignore certain objects
I have an enemy that has a linecast that checks if there is nothing between the player and the enemy. But I want the linecast to ignore the enemy object and the player object. How do I do this?
if (Physics.Linecast(transform.position,player.transform.position))
{
Debug.Log("cool");
}
Comment
Your answer

Follow this Question
Related Questions
Raycast not consistently detecting collision. 1 Answer
Network enemy spotting 0 Answers
Add only one Raycast/Linecast hit to a list 0 Answers
Linecast with transforms rotation? 0 Answers