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
  Spline Shape not centering around Spline Path tfunitydev 3 121 05-13-2021, 08:50 AM
Last Post: _Aka_
  Activate Curvy Generator After Scene Load jdkirk1 7 283 05-07-2021, 02:14 PM
Last Post: _Aka_
  Is it possible to generate an output spline after the conform path module? bennidhamma@gmail.com 3 277 03-21-2021, 06:37 PM
Last Post: _Aka_
  Error while making prefab having curvy Generator script User2200 3 352 03-15-2021, 07:16 PM
Last Post: _Aka_

Forum Jump: