Changing wall box colliders based on the players color
Hello everyone, I am new to unity. I am making a 3D puzzle, of where you control a ball that has to go through a linear stage without falling off. Sounds simple, but I want a puzzle element to it, where if the player is red he can go through red walls, blue, blue walls, green, green walls etc. This will be a puzzle as I will have some as the ground as well. All I need help with, is how to turn off a box collider in c# depending on the players color. Please help asap.
Answer by Jordi-Bonastre · Feb 03, 2016 at 04:55 PM
Maybe this function could be useful: http://docs.unity3d.com/ScriptReference/Physics.IgnoreCollision.html
Your answer
![](https://koobas.hobune.stream/wayback/20220612062514im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do you make a player pass through a wall depending on the color 1 Answer
Create 'call and response' music puzzle 0 Answers
I want a little help on my unity Project 0 Answers
Why is collision Detection only registering in the corners? 0 Answers
All colors values are RGBA(127, 127, 127, 255) and I can't fix it 0 Answers