Advertisement

Unity infinite plane

Started by February 07, 2012 11:12 PM
3 comments, last by meeshoo 12 years, 9 months ago
The game I am currently working on requires a sort of endless plane. It is actually a road that goes forever and the user can drive a car on it but the problem is that even though it should work theoretically it isnt working when I implement it. My idea was to have 3 planes moving towards the camera. They are laid end to end and move towards the cam at a constant speed. As soon as one hits a collider behind the camera it resets ahead of the camera but where the camera cant see it. This works for a few seconds but then gaps start to appear between the planes. I dont know if this is caused by the slight delay when the plane is being reset far ahead of the camera or something else... I am really confused because it works just like i intended it to for a moment. I can upload the project file or my scripts if that is required.

Thanks!
I think you should make a plane that covers the whole screen, and then just scroll the texture over it when your object moves.
Advertisement
I see where you are going with that but how would I do that? I don't know of any ways to make a dynamic texture in unity
Hmm I dont know unity that well but in low level graphics(dx/gl) you just have to manipulate the texture coordinates
I hope this will get you on the right track: http://answers.unity3d.com/questions/19848/making-textures-scroll-animate-textures.html

This topic is closed to new replies.

Advertisement