So, I am working on a game in Unity and I have some issues with my colliding. The problem is that the car that I made will sometimes glitch next to the wall and wont move back or forward. even though it's not colliding. What I've done is I added 2 empty gameobjects. Named them front and back bumper and added a script that is activated when the bumpers hit a wall. If the front bumper hits a wall it can't go forward and if the back one hits a wall it can't go backwards. But this isn't really that good. I need to know how to setup a good collider because this really is annoying when you play. Also the car can go up to 50 speed.
Assuming that the car can collide at high speeds into the wall, I would consider using a specific collision detection for the car's rigidbody.
There are some collision detection methods that are used to prevent fast moving objects from passing through other objects without detecting collisions.
From Unity's documentation :
As you can see, you should use Continuous detection for the walls and Continuous Dynamic detection for the car.
Warning : Don't forget that Continuous detection has a big impact on performance, you should only use it if you have collision issues and in the minimum possible amount of objects.