Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looping splines and GetNearestPointTF
#1
Small feature request:

Make GetNearestPointTF handle closed splines better when supplying start/end segment indexes.
Current implementation clamps start and end index and also requires that the end segment index comes after the start segment index. When working with closed splines, it would be nice to be able to supply start/end indexes such as start = 5, end = 1 when searching near the spline wrap-around.

In our case we try to find the closest position, but due to level layout (our spline crosses itself at some points) we want to limit the search space to only consider segments that are "near enough". But with the current implementation of GetNearestPointTF we need to do some special case handling when the player is near the wrap-point on the spline, basically implementing our own version of the method.
Reply


Messages In This Thread
Looping splines and GetNearestPointTF - by Sacryn - 10-13-2021, 01:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 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_
  Using Unity's SplineContainer in Curvy Splines dlees9191 3 15 02-26-2024, 09:49 AM
Last Post: _Aka_
  Distance travelled across multiple splines jh092 1 7 02-23-2024, 09:44 AM
Last Post: _Aka_

Forum Jump: