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
  Curvy not appearing in Unity 2019.2.14f1 bmacdonald1986 5 3,038 11-25-2021, 10:52 AM
Last Post: _Aka_
  Is Curvy splines appropriate to build city streets? atantoine 3 185 11-17-2021, 12:03 PM
Last Post: _Aka_
Question Generating a path from selected point to the beginning of spline on a closed spline? Zendariel 5 340 10-29-2021, 01:57 PM
Last Post: _Aka_
Information Curvy 7.1.6 is live _Aka_ 0 138 10-29-2021, 01:51 PM
Last Post: _Aka_

Forum Jump: