Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create spline at run time
#1
Hello Smile 

First of all love the asset. 

I have something that my character throws that i want to return to him using a spline now since i don't always know where the player will throw the object i need to create it at runtime (i think) 

is something like this possible and if so how? Big Grin
Reply
#2
Hi
Thanks for loving Curvy Splines, the world needs more love Big Grin
Yes you can use the API to create splines. Check api.curvyeditor.com for detailed information, and for some useful information: https://curvyeditor.com/documentation/extend/apigeneral
If and when you feel like it, please leave a review for the asset, that helps a lot.
Have a nice day
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#3
And to give more details, something like:
Code:
var spline = CurvySpline.Create();

//set up your spline
spline.Interpolation = ...;
spline.Add(...);
spline....
....
yourSplineController.Spline = spline;
yourSplineController.Play();
yourSplineController.Speed = ...;
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 97 02-03-2025, 09:34 AM
Last Post: _Aka_
  Create Mesh Node, Make Static Options rickgplus 1 123 01-23-2025, 10:12 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 354 01-20-2025, 12:25 PM
Last Post: _Aka_
  Extrude mesh along spline. New and confused user GhostStalker 3 122 01-02-2025, 09:58 AM
Last Post: _Aka_

Forum Jump: