About Wall collision

Is there a way to get the walls to not trigger the color change when they touch each other/overlap, and only happen when the player unit hits them? I had to leave a physical gap at the corners to get this to work.

Hi,

Do the walls have got Rigidbody components attached? If so, remove the Rigidbody components. The walls are not supposed to move. Collisions happen between at least one moveable collider and another collider. And by “moveable”, I mean a collider with a Rigidbody because that’s Unity’s concept.

If that didn’t help and/or fix it, try to work with layers. Disable the collisions between all game objects on the “Wall” layer, which you will have to create and assign first. See here:

Did this help? :slight_smile:


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms