Posts: 2
Threads: 1
Joined: Jan 2015
Hi, I'm working on a shoot em up game and I've decided to use Curvy for enemy patterns.
I've made some progress with single enemy but I have no clue how can I make multiple objects follow a spline aligned. Can anyone give me a hint or show me the way to start ?
This is what I'm trying to do :
https://drive.google.com/file/d/0BzaUUbc...sp=sharing
Posts: 690
Threads: 71
Joined: Jan 2015
If you have a single element with a spline controller attached, just prefab it and instantiate it (possibly use a pool for speed reasons).
Posts: 2
Threads: 1
Joined: Jan 2015
01-28-2015, 09:46 AM
(This post was last modified: 01-28-2015, 09:50 AM by anachronicdesigns.)
(01-28-2015, 09:25 AM)'Jake' Wrote: If you have a single element with a spline controller attached, just prefab it and instantiate it (possibly use a pool for speed reasons).
Thx for reply. I have a spline and planning to put many elements on it. So instantiating them would be bad for performance. But it worked, thx anyway.
Posts: 9
Threads: 6
Joined: Apr 2016
Wondering if you ever figured this out? I'm trying to do something similar and curious to know if you found a workable (and efficient) solution. Thanks much!
(01-28-2015, 09:46 AM)LastSipahi Wrote: (01-28-2015, 09:25 AM)'Jake' Wrote: If you have a single element with a spline controller attached, just prefab it and instantiate it (possibly use a pool for speed reasons).
Thx for reply. I have a spline and planning to put many elements on it. So instantiating them would be bad for performance. But it worked, thx anyway.
Posts: 690
Threads: 71
Joined: Jan 2015
Having objects, each with a SplineController attached, using a spline is the easiest and best way to go. If SplineController is too much overhead for your particular setup, you'll need to create a custom script that uses Curvy API to get spline data and move your objects accordingly. But unless you want to animate several hundred objects simultaneous I would stick to SplineController.