Hey guys welcome to the how to tutorial and today we’re going to make an infinite world just like what you see on minecraft we’re going to make it with unity3d so let’s go ahead and fire that up right now so we’re gonna create a new project um leave it there um the Packages that you want to check as a character controller and uh terrain assets and that’s all you need um and yeah create and this plugin took a while okay oh just okay shouldn’t really look like this there you go okay so you’re going to have someone like this and what You’re going to do first is a create a terrain one three four so um we want to go click on train create terrain you’re going to have to rain like this zoom out alright and we’re gonna go back into the terrain section and click on set the solution arm and set resolution change Your width or terrain with to 500 and your terrain lengths to 500 and um yeah set resolution so you’re going to have something like this just a plain old terrain there’s an end to it um let’s go ahead and add a light right now we’re going to click on game object And then create other and we’re going to put it in a directional light we’re going to pull this back bit about there’s good and so we have four like that um for this terrain let’s uh let’s go click on terrain in your hierarchy panel and go to your inspector view and Go to the paintbrush I have paint textures and there should be a button called edit textures go ahead and click that add a texture and we’re going to select one probably put cliff and a cliff that mm or whatever that’s what it looks like so you have a world like that actually Yeah now once we have a world our Torino setup let’s go ahead and go on a project panel and go to character controller and go ahead and drop the first person troll onto there doesn’t matter where you set them zoom in on the character by pressing F on keyboard and go and check Them out there um he should not be under the ground or bike like this you shouldn’t be like that and pull back up well you can actually do this back to the original just make sure he’s above the ground um once once you have set your first-person controller in we’re going To go ahead and make this world infinite so what I mean by that is we’ll go ahead and push play and we’re going to walk to the edge actually he’s walking pretty slow so well change the speed for him right there um movement just changes speed just so we Can get him falling over the edge of our world so we’re going to walk forward and we’re going to slow down wherever the edges ad which is right here oh god okay fell um yeah so I fell over the edge is no more terrain blah blah blah ball we Don’t want that to happen so what do we do what do we do okay well what we do is get the infinite terrain script I provided and we’re going to drop it into my accessible to project panel into the zest folder and we’ll get this where we Dropped drag and dropped it well we’ll put it in our tree make sure you turn selected in the hierarchy it will pop up in your inspector go ahead and drag and drop and what you have here is the infinite transcript you’re not done yet you need to add the player object to the Script so how did how do you do that well you can click on this little tiny dot over here and you can click that first purge controller I rather not let’s choose just graphics which is our actual player here he is this the guy so drag and drop you want to select the Terrain first grab the graphics controller and drag and drop them there alright so now that we have everything set but that’s all we need really so glad to push play speed is at 50 and you’ll see that my world is infinite there’s no end and I’ll fall over the Edge thank God and that is it guys um thank you for watching if you have any questions go ahead and leave it in a comment below or PM me if you would like um if you have any tutorials ideas that you want to see go ahead and send me a Message and I would make I’ll go ahead and like this video and subscribe helped me a lot that’s it guys thanks for watching Video Information
This video, titled ‘How to make an Infinite world in Unity3d’, was uploaded by ForeverExpanding on 2013-02-22 23:06:53. It has garnered 92026 views and 398 likes. The duration of the video is 00:06:45 or 405 seconds.
VISIT MY WEBSITE: http://educationsbestnews.blogspot.com/
I will show you how to make an infinite world like minecraft. Show you how to add lighting. I will also show you how to add texture to your terrain.
Here is the Infinite Terrain Script:
http://answers.unity3d.com/storage/attachments/1978-infiniteterrain.zip