Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nearest Point
#3
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_fl...pline.html
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.
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
  Control Point Interpolation Overrides. rickgplus 1 732 12-11-2025, 08:52 AM
Last Post: _Aka_
  12_Train junction point richardzzzarnold 5 3,791 04-16-2025, 02:19 PM
Last Post: _Aka_
  OnAfterControlPointAdded - Control Point is null jh092 5 3,519 02-04-2025, 09:31 PM
Last Post: _Aka_
  How to generate gameobject on the control point Yang Yi 1 1,776 12-10-2024, 10:14 PM
Last Post: _Aka_

Forum Jump: