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

Answer by herpanda

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...

View Article


Answer by Jonathan-Bro

I ran into this bug just now and found a good workaround for it. Try disabling then re-enabling the collider after setting the new layer. this.gameObject.layer = LayerMask.NameToLayer("IgnoreAll");...

View Article

Browsing latest articles
Browse All 6 View Live


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