top of page

Car Rigging Part 2: Wheel Math

jasondobra

Getting it rolling!

From Artists in Motion at the LIWA festival 2023



You may have come across this rather annoying thing that a standard wheel roll system has when following a motion path. My regular workflow involves using 2 pi r to roll a car wheel. However the vector is lost on a motion path. for example when rotations of the body changes or if its on a hill and bank.

"I'm aware there is a phenomenon that happens when looking directly at a roll wheel", unfortunately this is not it. Also the standard method when you turn the body of the car the wheels will spin around undesirably. The way to fix this we use an expression we can update the current position and track the vector on the motion path, below is the solution. In this diagram we use the following pointMatrixMult to get the world matrix of the car in the scene.

Network Storing the Radius of the wheel and the currentDistance as well as the Previous positions of PosX, Y, Z

Expression Runs the new calculation with a previous and current position in mind.


And BOOM! Perfect wheel rolling! It now follows the path without stopping or reverse the wheels rotation.

Not to mention when rotating the car the wheels don't move.




I have to thank my amazing friend Remi Delitrain for offering this solution.

38 views0 comments

Recent Posts

See All

Comments


bottom of page