How to make 2D polygon collider from a 3D Mesh (2.5D game like trials)

I’m working on a side scrolling game that will have 2.5D perspective, somehow similar to Trials, see image below.

I currently have a 2D prototype that works with a car and with two wheel joints, connected to two circle colliders. They run on a map which has a Polygon Collider 2D.

What I’d like to do is make a 3D Mesh, mainly the ground, as an uneven track to drive on. Since it will only move in 2D, it seems appropriate to have 2D colliders, even if the car is 3D. I want to easily just change the mesh, and recreate the 2D polygon collider without manual work.

I found a forum post about a 2.5D polygon collider which seems to do just this, but the link to asset store no longer works.

Is it simpler and/or better to just use 3D colliders, and freeze Z position of all rigidbodies? Or is there some simple way to do this?

Which will lead to the best physics simulation?

Thanks! :slight_smile:

Late reply, but I’m actually making something that does exactly this. I intend to put it on the asset store soon for about 5-10 USD.

Thanks a lot @Steven-1 , but I’m working on something completely different, but it sounds very interesting, and maybe something to look at in the future :slight_smile: Thanks!