Quantcast
Channel: Answers for "When changing a gameobjects layer, the physics collision matrix is not being respected immediately..."
Viewing all articles
Browse latest Browse all 6

Answer by herpanda

$
0
0
Okay I found a workaround. Put `transform.Translate(0,0,0)` in the update() function of whatever object you're trying to pass through. I'm not sure why this works, and it's probably wasteful calling transform.Translate 60 times on every object, but for now it'll do.[Here's the question/answer that I found the solution from.][1] [1]: http://answers.unity3d.com/questions/173916/ontriggerenter-doesnt-work-if-the-colliding-object.html

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>