I want to create an animation about roller coaster. For a simple track, for example, a circle, I can determine the position of the center of its wheel easily.

However, for any parametric curve, I have no idea to determine the coordinates. Let's take a general case as follows.

Given the parametric equation of a roller coaster's tracks as follows,
\begin{align} x &= f(t)\\ y &= g(t) \end{align}
where both are function of time t (for example).
A and B are the centers of the wheels with radius R. The distance between two wheels are kept constant d.
How can I determine the coordinate of A and B explicitly?
I would think that the distance from the track to the center of each wheel would remain constant and the function that describes the track would stay the same function, so assuming that the point on the function would be some thing like if f(t) = g(x,y) then f(t) + c = g(x,y) + c, where c is the radius of your wheel, would hold.