09-18-2019, 06:48 PM
Where deos the problem happen? Is the imported spline wrong, or is the objects created along the spline wrong? If it is the later, try this (in the loop of the script I send you):
GameObject.Instantiate(GameObject, Spline.transform.TransformPosition(segment.Approximation[cachePointIndex], Quaternion.LookRotation(Spline.transform.TransformPosition(segment.ApproximationT[cachePointIndex])));
It should work. If not, please send me a simple example project so I can see what is wrong
GameObject.Instantiate(GameObject, Spline.transform.TransformPosition(segment.Approximation[cachePointIndex], Quaternion.LookRotation(Spline.transform.TransformPosition(segment.ApproximationT[cachePointIndex])));
It should work. If not, please send me a simple example project so I can see what is wrong
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Please consider leaving a review for Curvy, this helps immensely. Thank you.

