I have been playing around with a really basic 2.5D plat former and I created an enemy unit that works like a koopa turtle from Mario Bros, everything currently works properly at first but after short amount of time the units stop detecting if they have hit each other.
They are made to turn around when they hit either a wall or another unit like themselves and the wall detection will always work but when two copies of the unit hit each other they will turn around like they should for the first 10 or so tries and then they will hit each other and stop moving and act like they haven’t found each other. I’ve tried messing around with rigid body settings, the physics values, the speed of the units, using the WakeUp function and even moving them apart to see if they just needed to make contact again and nothing has worked.
I’m also currently using Unity 5.5 as well, if anyone can think of a fix I would greatly appreciate it.
So apparently I tried something completely weird and it happened to work but I have no idea why. When detecting if the unit hit a wall or another unit I’d only check the normal it hit so that the floor or something wont register but the upright walls will, as I said this would work fine until it just decided not to, but the fix was to check the tag for the unit first and it just works. I cant explain it, but I can stop thinking about now.