The problem of the tram running on the Path

Hi everyone. I am currently working on a tram model that moves on a path. it is one piece and needs to bend according to the path shape. Because it has bellows. For the test I created a working skeleton system in blender and moved it to ue5. The test model moves on the path just fine but it doesn’t bend on turns. when I change the collision settings it turns into a fabric that moves on the path. This is terrible. I don’t know what I’m missing or doing wrong but I feel like I’m near the end. I’m sharing various screenshots below. please help for this beginner.