Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nearest Point
#4
(04-22-2019, 12:00 PM)_Aka_ Wrote: Hi,

First get the nearest point's TF from the player using the method GetNearestPointTF.
Then, if necessary, convert TF to distance using TFToDistance
Add the value you want to your TF or distance. This will give your the TF or distance of the point ahead of the player
Finally, use Interpolate or InterpolateByDistance to get the 3D coordinates of the new point.
All methods referenced here are documented at this link: https://api.curvyeditor.com/520/class_fluffy_underware_1_1_curvy_1_1_curvy_spline.html

Thank you Smile
Reply


Messages In This Thread
Nearest Point - by PretzelStudios - 04-20-2019, 01:13 PM
RE: Nearest Point - by PretzelStudios - 04-20-2019, 03:26 PM
RE: Nearest Point - by _Aka_ - 04-22-2019, 12:00 PM
RE: Nearest Point - by PretzelStudios - 04-23-2019, 10:02 PM
RE: Nearest Point - by _Aka_ - 04-24-2019, 02:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting Distance from a World Point zorksox 3 5 04-16-2024, 07:30 PM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
  Connection "next' control point jh092 3 15 11-22-2023, 11:47 AM
Last Post: _Aka_
  Spline.Length not updated unless I add a point to spline (or modify it) first. _RicO 3 6 08-26-2023, 08:41 AM
Last Post: _Aka_

Forum Jump: