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
  Accessing generator's input spline in script, changing it at runtime smackledorf 3 90 06-17-2021, 01:59 PM
Last Post: _Aka_
  Questions about Generator: mesh/objects within spline, snap to control point dartboard 5 189 06-09-2021, 12:42 PM
Last Post: _Aka_
Shocked Change spline path at runtime burn0815 7 381 05-27-2021, 08:27 PM
Last Post: _Aka_
  Create a path with Curvy from a "position" animation with several keyframes mc_deimon 1 140 05-20-2021, 10:04 AM
Last Post: _Aka_

Forum Jump: