- Home /
Transform not translating accross path, GL.Begin(GL.LINES) isn't working properly, a few more problems...
I have a few problems occurring. The largest one being the function of the script I'm writing.
I'm trying to create a dynamic-"grid" script. The purpose of the script is to create a path based on where the player clicks and then to follow the defined path as it's being created. The script should behave almost exactly like the path system in the following app does: Impossible Maze iOS App (Please check it out so you understand exactly what I'm trying to accomplish)
The methods i use in the script are extremely inefficient. Theoretically, however, the code should work exactly how I want it to work.
The entirety of the three classes i use are in the following pastebins:
GridController.cs (This is attached to the object that will translate across a path).
GridCell.cs (This is attached to each object that represents an x,y coordinate on a grid in the scene space).
In GridController.cs, you will notice that in the OnPostRender method i use GL. The entirety of that method is to draw lines that represent that path (just like in the app in the link).
I'm probably jumping through to many hoops in my code or I'm making something harder than it needs to be.
Anybody have any ideas or solutions? Thank you!
-Phxvyper
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Generate closed, random path in C# 1 Answer
Distribute terrain in zones 3 Answers