Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best practice for mass-object instancing along 100km spline (railways) plus streaming
#11
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:

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
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: Best practice for mass-object instancing along 100km spline (railways) plus streaming - by _Aka_ - 09-24-2019, 03:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to duplicate a spline with an offset Kapistijn 8 1,365 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 661 11-13-2025, 11:32 AM
Last Post: _Aka_
  Create Game Object Renaming Options rickgplus 1 937 09-23-2025, 09:33 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,464 07-29-2025, 09:15 PM
Last Post: _Aka_

Forum Jump: