From the course: ARKit and Unity: Build a Drivable Car in Augmented Reality

Adding the car model

- [Instructor] So in this video we are going to attach the wheel models on the car as well as attach the actual car model on top of it. So let's go to a project and I have this car model right here which I'm going to provide in the resources folder such as drag this model inside the assets folder. Click Import. Now it might take a while to import this model into the assets folder. So I'm just going to fast forward the video. So as you can see the 3D car model folder has imported successfully. Just open this folder and here you can see, the sports car model. Just drag this into the hierarchy. The lightning is not so proper right now but we will take care of that in the further lessons. So as I told you first we are going to attach the wheel models on the wheel colliders and then we are going to attach the car on top of it. So let's do that. First let's just shape the car on one side. Now we are going to attach the wheel models on wheels gliders. So first let's open up car parent as well as sports car model. So let's see which wheel model corresponds to W1. So as you can see front right wheel corresponds to W1. So we are going to drag this on top of W1 and make it as a child of W1. Zero are the positions right here. So the first wheel is successfully attached on the wheel glider. We have to do the same with all the remaining three wheels. So let's do that. W2 corresponds to front left wheel. Let's just drag this on top of W2 and zero this out as well. W3 corresponds to rear left. So let's just drop this, on top of this one and zero this out. Same with the last one. This one corresponds to rear right wheel. Just drop this on top of this and zero this out. So all the four wheel models are successfully attached. Now we just have to place the car body on top of this. So we are going to select the sports car model and try to position it on top of the inner body. We have tried to position it correctly but the wheels are kind of inside the car. So let's just drag them outside. So just open all of them and also the wheel parents. Let's first select these two front left, press Command and select rear left. Drag them outside like this. This look perfect and on the other side as well front ride and rear right. Drag these outside. These look perfect as well. I think it looks good now. This wide box doesn't look so good so just select this the cube and uncheck the mesh renderer so that we don't see the cube. So that's all for this video. See you in the next one

Contents