How to get road Collider / Hitbox to be perfect with road and sidewalk?

I’m a beginner Unity developer working on a project that involves a road model with sidewalks. I’m seeking advice on implementing precise colliders for both the road and sidewalk surfaces. Rather than using a single box collider for the entire model, I’d like to create separate, form-fitting colliders that accurately match the contours of the road and sidewalks. This would allow characters to smoothly transition between walking on the sidewalk and the road while maintaining realistic collision detection. What’s the most effective method to achieve this level of collision precision in Unity?

Multiple box colliders would probably be best, but if you’re okay with a performance trade-off you can use a mesh collider to precisely contour your surfaces.

1 Like

The mesh collider worked perfectly thank you BoxTurtle!