-
Car wheel rotation on an angle
Hi, hope someone can help.
I’ve got a car set up so that the wheels rotate when the car is moved left to right. But I can’t work out how to extend the expression so that the car may move on a diagonal path with the wheels rotating correctly.
Not sure if I explained that well, but imagine a car in 2D moving up and down the contours of a mountain. So not flat along the x-axis, but diagonally. Is there a way to modify the expression so the wheels rotate correctly?
I think it has something to do with trig, and working out the hypotenuse dynamically based on the slope/angle of the car and the distance travelled in x and y.
Thanks!