Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generate Spline and Segments dynamically with a script??
#3
(08-09-2018, 11:42 AM)_Aka_ Wrote:
(08-09-2018, 03:32 AM)mythstified Wrote: I've been fishing around the API and am utterly confused.
Can you please explain to me what confuses you? Do you have any suggestions to make the API easier for you? I ask because I don't see the complexity in finding the method to add control points to a spline. Maybe I became blind to the issues you encountered, so your opinion will be helpful.
The method you are looking for is CurvySpline.Add

Thanks I'll check that out.

As for the API, I think one thing that would vastly improve it is examples.  See Unity's API: https://docs.unity3d.com/ScriptReference/Transform.RotateAround.html

(08-09-2018, 03:32 AM)mythstified Wrote: if you have any other tips or things to keep in mind while doing such a task please let me know!
For better performance, use the Add method override that takes the array of all positions at once, instead of calling the one that adds a single CP multiple times.

Interesting!  Thanks.  I'm debating whether to premap out all the directions or have it run realtime.. It would probably be more performant though to premap it at the start. Hmm
Reply


Messages In This Thread
RE: Generate Spline and Segments dynamically with a script?? - by mythstified - 08-10-2018, 02:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
  Adjust radius of generated mesh via script? Shackman 1 4 03-26-2024, 01:12 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_

Forum Jump: