-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First square of the makeroads mesh has broken UVs (for both the road and edge) #1
Comments
I tried doing a pull request but don't have permission. The key piece of code is this:
Changed the loop to be an iterating for loop. In general, the idea is to just assume the non-existent previous position to the very first one is the second position, but inversed so to speak. |
Hey, cool, I went to try and integrate the above but I think you changed some more stuff than I realized... It appears you may have changed PointProvider into a List so that it has a .Count perhaps?? Could you just drop the entire function in here and I'll drop it into my repo and see what happens? If it works I'd be happy to integrate and give you credit in the commit. |
Yeah I made it into a list so that I could access the index ahead.
Thats the whole makeroads
Thats the whole make roads from transform code. |
I also added some possibilities to choose the maxLinearVertexSpacing and allowing to regenerate continuously in update. just some small debug stuff. |
This is caused by the prevPosition, prevLeft and prevRight variables being set to Vector3.zero in the first iteration, which causes problems in most cases.
The result is not so pretty:
The text was updated successfully, but these errors were encountered: