Quantcast
Channel: Answers by "Lovrenc"
Viewing all articles
Browse latest Browse all 90

Answer by Lovrenc

$
0
0
First, put another log line before your IF statement. If that line prints in console, your problem is in if(col.gameObject.name == "Ball"). If that is not the case, check this [documentation][1] about unity colliders. Especially focus on the collision tables on bottom of the page. [1]: http://docs.unity3d.com/Documentation/Components/class-BoxCollider.html

Viewing all articles
Browse latest Browse all 90

Trending Articles