Wheel Model Align with Unity 5 SampleAssets?

I am using Unity 5 and have removed the asset store Sample Assets and imported the Vehicles and Camera portions of the SampleAssets downloaded with Unity 5 beta. The store version wasn’t working well on the vehicles in Unity 5, especially the driving related to the wheels.

I imported a model for a car (in this case the SUV from Unity), and am trying to tie the wheels to the wheel hubs. The documentation says to use the empty car prefab, but there isn’t one in this version. In the documentation, it says that you need to “Select each “Wheel Hub” in turn, and drag the corresponding wheel model from your car into the “Wheel Model” slot of the Wheel component on the Wheel Hub Game Object. Then click the “Align to assigned wheel model””.

There isn’t a Wheel Model slot or a Wheel component inside the Wheel Hub GameObjects. There’s just the Wheel Colliders and Wheel Effects components. Looking at the sample assets from the asset store, it has a wheeleditor script and a wheel class, both of which are not in the unity 5 version. Attempting to import those did not work well.

Is there updated documentation for this process, or is this not ready to be used for custom models yet? I did try manually moving the wheel hubs, but that didn’t work well (either too far away or the vehicle didn’t move at all).

1 Like

Look here…

Ok, thanks. I will take a look at that.

I looked at that documentation, mostly related to the new car tutorial it mentioned and I believe the current Sample Assets already contains the portion it talks about on the visual wheels, since the wheels change location to the spot where the wheel hubs are located. In this case, they are located where the wheels on the example car were located. The issue I’m having now is to manually set the location of the wheel hub to the actual wheel model. In the previous Unity sample assets, it looked like there was an editor script to handle that portion, as in aligning the wheel hubs to their proper location with the models, which seems to be missing.

Is that editor script no longer valid for the new way of doing things or is it just not implemented yet? I’ve had some success of changing the hub location manually, but it would be great if the align option would work as well.

Please log a bug with a small repro project. I’ve seen that before and sure it’s a bug with the current editor implementation of the wheel colliders.