Hi,
Thanks for your patience. I had finally access to a computer in my vacations. The code I send you lacks only a parenthesis. I wrote it on android, with no way to test it, thus the mistake. Here is the same code but with no parenthesis issue:
I tested it with your project, it works.
Have a nice day
Thanks for your patience. I had finally access to a computer in my vacations. The code I send you lacks only a parenthesis. I wrote it on android, with no way to test it, thus the mistake. Here is the same code but with no parenthesis issue:
Code:
Quaternion lookRotation = Quaternion.LookRotation(Spline.transform.TransformPoint(segment.ApproximationT[cachePointIndex]));
GameObject.Instantiate(GameObject, Spline.transform.TransformPoint(segment.Approximation[cachePointIndex]), lookRotation);
I tested it with your project, it works.
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.