Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple splines movement
#3
(02-20-2025, 06:07 PM)_Aka_ Wrote: 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:

Code:
    Vector3 splinePoint = _splineController.Spline.InterpolateByDistance(_splinePosition, Space.World);

This change should do it. If you still have issues, please let me know.

You are totally right! I had the code done before implementing Curvy Splines 8, so I simply translated to it. I have redone the system to use SplineController instead and it works great.  Smile
Reply


Messages In This Thread
Simple splines movement - by shills - 02-19-2025, 07:54 PM
RE: Simple splines movement - by _Aka_ - 02-20-2025, 06:07 PM
RE: Simple splines movement - by shills - 02-24-2025, 04:26 PM
RE: Simple splines movement - by _Aka_ - 02-26-2025, 09:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Connections Between Opposing Splines lockiidraws 1 588 12-04-2025, 02:14 PM
Last Post: _Aka_
  Spawn at start/ end of splines rickgplus 4 2,883 03-21-2025, 12:34 PM
Last Post: _Aka_
  Any performance 'hacks' for scene with lots of splines rickgplus 1 1,820 03-18-2025, 10:11 PM
Last Post: _Aka_
  Mesh Generation between two splines vatan 4 3,640 02-14-2025, 07:11 AM
Last Post: vatan

Forum Jump: