Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity check if gameobject is inside collider

if(hitToTest.collider.bounds.Contains(telePosition))
{
   print("point is inside collider");
}
 
PREVIOUS NEXT
Tagged: #unity #check #gameobject #collider
ADD COMMENT
Topic
Name
2+6 =