I accidentally made a NoClip Script

My Rocket uses multiple colliders and I misunderstood the assignment about disabling collisions. I wrote a separate script for my debugging and after a good hour of scouring the Unity reference material I made a thing that works for a NoClip mode (not yet refactored). If you want to make a NoClip script then use the code block for pressing C. I don’t pretend to fully understand why it works this way just yet but I’m confident I’ll figure these things out as I go along. Thanks.

Edit: This isn’t good code for a rocket that doesn’t use multiple colliders on children of your rocket gameobject, sorry

2 Likes

Holy, wp! If you would want to achieve it in a better way (or faster way), and you have one box collider, and its the parent. You can just simply disable it instead of doing these stuff. (i saw your post and after an hour randomly my brain thought of this, i tried it and it worked :slight_smile: )

But Thats impressive being able to do it that way by just looking at the Unity references.

Cheers

Privacy & Terms