Unity infinite plane
4 replies to this topic
Members - Reputation: 161
Posted 07 February 2012 - 05:12 PM
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.
Members - Reputation: 508
Posted 18 February 2012 - 08:39 PM
I hope this will get you on the right track: http://answers.unity3d.com/questions/19848/making-textures-scroll-animate-textures.html