How can I Rig a Trolley?

So, i’m trying to make a rig for a cart, but i can’t figure out how i do this, i tried many variations of rigs, RBC custom rig, a semi truck rig, and other, but nothing really achieve what I want. (The part that’s giving me trouble is this curve from the picture above)

What I want is to make a Rig that I can at least make the cart and the wheels follow the track and make that curve correctly, one wheel turns and then the other one on the curve, literally following the track. The wheels are like those supermarket carts/trolleys.

In the “Semi-Truck” Rig that I made using IK bone and Copy Transform, I’ts kinda weird and buggy to use obviously, and the rotation of the trolley keeps getting messy. Mainly when you move it, the rotation changes in a way that wasn’t supposed to.

And I also couldn’t use the Follow Path, I don’t know why, but he keeps getting weird and the object does not follow the path…

As for the second, the “workaround” Rig kinda Works, but not properly, one of the pivot is moving the other part (I put the vídeo below showing what’s happening), It Works, but not the way it should, like following the track correctly, and the body keeps getting distant the wheel while turning on the curve. I had to turn and change the positions every time because the wheel wasn’t following correctly the track, neither the “body”

If anyone knows too how to make a Rig like what I want, or just need to take a better look in the archive,I can send the .blend files to you.

(This one down here is not animated, I had to put it in this position manually, it’s just to represent what i want the trolley to do

(I had to put the videos of the attempts in a Imgur link because I’m a new user here)

https://imgur.com/a/EKvOCOe : I want it to reamin fixed as the second pivot point.

https://imgur.com/a/M9hysNw : This one is the “alternative solution” for the rig, but it didn’t make the curve very well, and i had to move manually the wheels to keep they in the track, but also the body continues to move away from the wheels…

Hi and welcome, first of all Imgur is not available to access in the uk, Also you have created an impossible set up where the length of the cart is longer then the radius of the bend on rail. you ether make the bend gradual or reduce the length of the cart. There are free car rigs available for blender.

Thanks for replying! First, I’m sorry about the imgur, it was the only method I could think of at the time. Now I uploaded the videos on youtube: https://youtu.be/8jB3PSi9XFo and the other one https://youtu.be/ETWOfmuZLZM

I will test the methods you described to me and come back later to tell with they works. Thanks!