In this class, we reviewed what we learned last time.
And we learned how to make an 3D object and boarders.
When we play our scene, we can pass through the objects.
To solve this problem, we have to add a collider.
First, create a new project.
Make a terrain, and add a 3D Object sphere.
And we will going to add a component like this.
In the radius tab, you can set a range that you can approach.
You can jump over a sphere, and stand on it.
I add an audio, too.
Now, let’s apply this to our scene.
I will add a collider to my objects.
First, I add an box collider to my phonebooth.
If you click this button. You can transform its size.
Second, I add an Mesh Collider to my piano.
If you check convex, it can make a collider automatically! So awesome.
Next step is making boarders.
We fall down endlessly when we go further to our terrain.
To solve this problem, we will make invisible walls.
Change its name ‘boarder’. And add a component ‘Box Collider’.
And click Edit Collider also. Transform its size to fit in your terrain size.
Make sure your boarder meet with your edge of the terrain.
So made 4 boarders, to each of your edge.
Like this. Now we won’t fall down edge of the terrain.
*You can download some 3D Objects from here.
My Dropbox Link :