|
I am just getting started with Unity and I'd like to ask a question. If I have a "Vehicle" object that has two children: "FrontWheel" and "BackWheel" (both 'wheels' are cylinders), how should I set everything up such that I can move the entire vehicle by turning its wheels? When I apply a torque to "FrontWheel", the vehicle starts to move, but instead of the whole thing the moving together, the chassis is rolling on the cylinders and eventually falls off. How can I prevent it from doing that? Edit: Here's the Unity project: http://www.filedropper.com/childmovesparent
(comments are locked)
|

generally you (surprisingly) only "rotate" the "images of" the wheels, based on how the, err, abstract wheel is moving along on the ground.
it's really a big effort setting up a vehicle rig. Did you know there are a couple of car, bike, kist in the Asset store.
to get specific help here you'd probably have to post your set-up
@Fattie I added a download link to the Unity project.