Last time, we’ve learned how to make a wall, and walk around the space.
With that, we can make a game like ‘maze’.
To walk around the space, we will add an component ‘Rigidbody’ inside CardboardMain.
And add a capsule collider.
Like this. I set my capsule collider’s height 5.
To look at what happens in your scene, turn off the maximize on play, and click the play button. You’ll see your capsule collider fall down or keep rotates. To fix this issue, we will check all the x,y,z in freeze rotation.
Now we can walk around our space softly. Next step is making a wall.
Download some wall texture in asset store.
After you choose the texture and downloaded, create a cube.
Make that cube look like a wall. And duplicate it.
In maze, there has an entrance and exit. Make sure they exists.
To organize the file, we will make a category. Create Empty.
And change its name to ‘wall’. And drag the walls inside that folder.
That’ll make you to work more easily.
So with this basic system, I made my own maze.
There’s some surprise things in the edge of the wall.
You can download this maze here :