Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best practice for mass-object instancing along 100km spline (railways) plus streaming
#9
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
Please consider leaving a review for Curvy Splines, 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-18-2019, 06:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Spline Spots from 2 samples. BitBlit 8 648 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,064 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 867 11-13-2025, 11:32 AM
Last Post: _Aka_
  Create Game Object Renaming Options rickgplus 1 1,104 09-23-2025, 09:33 AM
Last Post: _Aka_

Forum Jump: