Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spline object on a spline path
#23
1) I don't see why they should be the same: there are different values for different independent features. In your game you want them to be the same, and the API allows for it, but I don't see why it should be the same for all the other users.
So, first, read this if it is not already the case, so you understand what is difference between TF (which represents a mathematical notion behind splines) and distance (which is the notion that most people think with): https://curvyeditor.com/documentation/splines/start?s[]=tf#units
then, here is the code you want:
yourShapeExtrusion.From = yourController.AbsolutePosition / yourController.Spline.Length;
I did not compile this code, so it might have a minor typo

2)That's a restriction coming from Unity's side. If I find a workaround around it I will include it the next update
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
Spline object on a spline path - by ATHellboy - 02-11-2020, 01:14 PM
RE: Spline object on a spline path - by _Aka_ - 02-14-2020, 10:47 AM
RE: Spline object on a spline path - by ATHellboy - 02-16-2020, 04:54 AM
RE: Spline object on a spline path - by _Aka_ - 02-16-2020, 08:08 PM
RE: Spline object on a spline path - by ATHellboy - 02-17-2020, 09:43 AM
RE: Spline object on a spline path - by _Aka_ - 02-17-2020, 11:56 AM
RE: Spline object on a spline path - by _Aka_ - 02-17-2020, 12:16 PM
RE: Spline object on a spline path - by ATHellboy - 02-17-2020, 12:32 PM
RE: Spline object on a spline path - by ATHellboy - 02-19-2020, 03:21 PM
RE: Spline object on a spline path - by _Aka_ - 02-20-2020, 01:33 AM
RE: Spline object on a spline path - by ATHellboy - 02-20-2020, 05:45 AM
RE: Spline object on a spline path - by _Aka_ - 02-23-2020, 12:01 AM
RE: Spline object on a spline path - by ATHellboy - 02-23-2020, 04:41 AM
RE: Spline object on a spline path - by ATHellboy - 02-23-2020, 07:19 AM
RE: Spline object on a spline path - by _Aka_ - 02-25-2020, 12:11 AM
RE: Spline object on a spline path - by _Aka_ - 02-25-2020, 12:17 AM
RE: Spline object on a spline path - by ATHellboy - 02-26-2020, 03:44 PM
RE: Spline object on a spline path - by _Aka_ - 02-29-2020, 11:19 PM
RE: Spline object on a spline path - by _Aka_ - 02-29-2020, 11:46 PM
RE: Spline object on a spline path - by ATHellboy - 03-01-2020, 09:30 AM
RE: Spline object on a spline path - by _Aka_ - 03-01-2020, 03:12 PM
RE: Spline object on a spline path - by ATHellboy - 03-01-2020, 04:37 PM
RE: Spline object on a spline path - by _Aka_ - 03-01-2020, 05:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rasterized Path Range issue proton 3 15 04-27-2024, 09:26 AM
Last Post: proton
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  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_

Forum Jump: