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
  UI button to start Curvy Spline in scene funkd 1 23 07-12-2019, 11:19 AM
Last Post: _Aka_
  Move the Create Mesh of a CurvyGenerator Out of the Main Parent UsernameHed 3 69 07-08-2019, 06:57 PM
Last Post: _Aka_
  Path not as smooth as spline jawadkhan.9026 3 172 06-12-2019, 11:19 AM
Last Post: _Aka_
  How can I make the path visible in game? PretzelStudios 4 237 06-02-2019, 09:01 PM
Last Post: _Aka_

Forum Jump: