Strange collision bug?

Guys, i am experiencing a VERY strange bug/problem on my game. I am working on an FPS, and it took me quite some time to make a “playable” underwater mode for the standard first person character, because it uses a character controller, two scripts interacting with each other at the same time having everything on private, a kinematic rigidbody, etc…
But after some hours i was able to make a underwater mode for it that disables the character controller, unchecks it’s rigidbody’s options and restricts it in some positions and rotations, and then add a script that will make the player move in the direction of the mouse. But, i am having a problem with adding this to two prefabs.

I have two EXACTLY EQUAL prefabs, but with different names. Now the strange thing is, with prefab n1°, i can’t pass through walls when on underwater mode. BUT prefab n2° can! Wtf? How can this be even possible if both are the same thing?

#EDIT

Both prefabs have the exactly same components, same scripts, and same values. The script uses private variables to hold all the references, and changes the prefab’s behavior while underwater based on that. So? This means that IF there was an error, or different behavior on each prefab by the script, i would know.

  • Are you sure that nothing in your scripts is referencing the name of the gameobject?
  • Try creating 4 objects, 2 from each prefab. Do they exhibit the same behaviors? Do the two that are based on the prefab that goes through walls both go through walls? What about the other ones?
  • Check that they are both using the same tags and layers.
  • Edit->Project Settings->Physics and check the collision table and make sure everything is working as planned.

And, when you figure out what’s going on, please share an update! This one has me intrigued.

Something between the two is different and you’ll find it eventually. Yes, I know you checked many many many times. I have been here before too tearing my hair out just to find that, oh yeah, that one little setting is off.