Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get world vector3 from absolute position on spline
#1
Hi, I thought this was TFToDistance but I'm after something different.

I know the absolute position of an object on a spline, I want to get a world space position of a fictional point along the spline. For example my object is at absolute position 55, I want the vector3 of +10 length along the spline.

Is this possible without placing another spline controller on the spline?
www.hawkenking.com - interactive design & game development
Reply
#2
Hi
Yes it is:
yourSpline.InterpolateByDistance(55+10, Space.World)
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
(06-08-2021, 12:02 PM)_Aka_ Wrote: Hi
Yes it is:
yourSpline.InterpolateByDistance(55+10, Space.World)

thanks!
www.hawkenking.com - interactive design & game development
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 1 1 1 hour ago
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 2 1 hour ago
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_
  GO can't fit end of the spline GameDeveloperek4123 3 13 03-04-2024, 11:06 AM
Last Post: _Aka_

Forum Jump: