Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie question..
#1
Hi,
I just bought the curvy package but I'm not sure it can do what I want so I'm asking the experts here for confirmation before I invest a lot of time trying to figure it out.
So, say I have a circle spline and three game objects. Now what I want, at startup, is populate the circle with multiple instances of the three game objects in an order I specify and have them bend to follow the spline. I'm trying to create a 2d cutaway of a planet made out of prefab pieces. It's important that they bend since the pieces are made flat with plenty of polys to allow a bend and it's so much easier to create all the assets flat. If it is possible, a little hint as to what components or example files I need to look at would be appreciated as well.


Thanks,
Maharg
Reply
#2
Hi Maharg,

just add a SplineController to each GameObject, then set it's Spline and InitialPosition property to set it up.
Reply
#3
Awesome, thanks! I will venture forth then.

-Maharg

Shoot, it doesn't bend the mesh. Oh well. Curvy is still very cool for lots of uses. I'm sure I'll be using it for other things on this and future project.

Thanks,
Maharg
Reply
#4
What exactly do you mean with "bend the mesh"? Controllers set the transform of their GameObject by default, using an axis you define in the Controller inspector.
Reply
#5
I want to conform straight segmented tile pieces to a circle to make a smooth 2d circular planet. I've been looking for a spline system that lets me do that or a bend deform modifier.
Reply
#6
That should work if you use a Curvy Generator with the Volume Spots module (works with a Path as well!). It places your meshes or prefabs along the spline. If that doesn't work, can you provide a screenshot or sketch of your input objects?
Reply
#7
Oh, okay! I'll try that tonight. Thanks Jake!
Reply
#8
I just re-imported the latest package from the asset store and I got this error:

Assets/Packages/Curvy/Controllers/UITextSplineController.cs(263,20): error CS1061: Type `UnityEngine.UI.VertexHelper' does not contain a definition for `Clear' and no extension method `Clear' of type `UnityEngine.UI.VertexHelper' could be found (are you missing a using directive or an assembly reference?)

I'm using Unity 5.2.0f3. I changed Clear to Dispose to fix it.

James
Reply
#9
Hm, Unity 5.2.1p2 has both, Vertexhelper.Clear() and Vertexhelper.Dispose(). Will change this again for 2.0.3.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Hello I have a question. wjdtjr0114 1 1,050 02-01-2017, 07:32 PM
Last Post: Jake
  [Question] Going backwards (SplineController) Warow 1 1,284 11-25-2016, 08:15 PM
Last Post: Jake
  Pre-sale question: prefab mesh deformation along spline rogalvao 4 3,738 06-09-2016, 07:48 PM
Last Post: johnnemann
  Basic Event Question TenaciousLibbs 1 1,359 04-27-2016, 06:31 PM
Last Post: Jake

Forum Jump: