Collision Checks with Unity

4 posts

Flag Post

My team and I are possibly overlooking the difficulty of this (We are all are ‘fluent’ coders), but need help checking for collision between two objects.

var cube = GameObject.CreatePrimitive(GameObject.Find(“cube”));
if( /* Collision Check? */ ) {
Debug.Log(“Collision is working”);
}

 
Flag Post

http://lmgtfy.com/?q=unity+collision

 
Flag Post

I wouldn’t have came here if I didn’t google it and clicked on thousands of links without making sense out of it lol.

 
Flag Post

So this link was of no use, despite the handy “code used” segment which showed exactly how collisions are detected?

Or this link which is the documentation and indicates that collisions are handled via a function?

Or the half dozen or so other links that show the same thing?

(GIANT HINT: There is no “if(colliding)” check)