Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
move parallel to the path in curvy
#1
Can i make dynamic code  to spawn flys like my images with only 1 path?
(move parallel to the path)



my code:

inst = shapesPool.Spawn(this._Cube);
shapesPool.Spawn(_Cube).GetComponent<SplineController>().Spline = sppath;
sppath.Refresh();


[Image: anh1.jpg]
Reply
#2
Just answered this question by mail,but for everyone:

Either use the SplineController's offset, or parent the flies to a separate SplineController GameObject and offset transforms then.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 19 04-17-2024, 10:57 AM
Last Post: _Aka_
  Rasterized Path Range issue proton 2 10 04-15-2024, 03:42 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 10 04-03-2024, 03:16 PM
Last Post: _Aka_

Forum Jump: