how i can make a collision of a trail?

You will need to spawn a sequence of Box collisions that conform to the trail.

Ideally, manage these box collisions inside a single Actor/Component for the sake of performance. But the logic flow should look roughly like this.

Record Location of Vehicle as [PriorVehicleLoc] …then… When Vehicle has moved a Distance>[RibbonResolutionDist] Create a Box collision with a length equal to the distance between [PriorVehcileLoc] and [ActorLocation]. Assign each Box collision to a Map/Struct with a [Lifetime] equal to the lifetime of your Trail.

Keep track of these Collisions in your map, and tick their lifetimes down by Delta time every tick.
When a box’s lifetime is <=0, destroy it!

It can seem a bit faffy, but this is generally how things like this are handled in games.

[RibbonResolutionDist] will need a strike a good balance between accuracy and optimization. too.