02-20-2025, 06:07 PM
Hi,
Have you thought about using the Spline Controller instead of recreating its behavior via code? You can control the spline controller via APi. You will only have to set the offset and speed parameters, and the controller will take care of the rest.
If coding everything yourself is indeed what you want, then, and assuming CurrentSpeed is in distance/time:
This change should do it. If you still have issues, please let me know.
Have you thought about using the Spline Controller instead of recreating its behavior via code? You can control the spline controller via APi. You will only have to set the offset and speed parameters, and the controller will take care of the rest.
If coding everything yourself is indeed what you want, then, and assuming CurrentSpeed is in distance/time:
Code:
Vector3 splinePoint = _splineController.Spline.InterpolateByDistance(_splinePosition, Space.World);This change should do it. If you still have issues, please let me know.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Please consider leaving a review for Curvy, this helps immensely. Thank you.

