- Home /
?Can you loop a terrain, to make it never-ending?
Hi
If I have a terrain of say 2000 x 2000, is it possible to loop it so that when you reach the edge, you just walk straight onto the opposite side (Like original pac man)
thanks!
try this one looks great..
Answer by bowditch · Mar 24, 2010 at 02:06 PM
You may want to check out this video on Dynamic Terrain Loading.
There is also a Unify Community Forum post similar to this here
Addition - I came across StitchScape. Thought this might be useful as well.
Answer by n8 · Mar 24, 2010 at 02:04 PM
You would just need to have a collider on each side of the terrain (one for each all set to triggers) and attach a script that once a trigger has been activated reset the players "x" or "z" to either "0" or "2000" depending on which side you walk off of. this will effectively "teleport" your player giving a wrapping or continuous terrain effect. From there you would just need to make it look pretty by somehow masking the instantaneous disappearing/reappearing of you your player. Hope that answers your question.
Answer by alexnode · Apr 08, 2010 at 03:20 PM
If your heightmap doesn't tile perfectly. You could use the the objImporter and create a mesh with mirrors. So one side joins the other perfectly without any visible seam.
Your answer
Follow this Question
Related Questions
Flat, seamlessly wrapping 3D world? 0 Answers
Make a simple tree 1 Answer
Stitching two or more terrains... 2 Answers
Attempting to make a very large & low detailed map with a high detail center 1 Answer
Cinemachine 2D Level Wrap 1 Answer