Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SplineController slows down approaching connections
#1
Hi again,

I'm using the default SplineController to move an object. I have multiple splines joined with connections. The object slows down as it approaches each connection then speeds up again after continuing to the next spline.

I'm wondering how do I change this behaviour so the speed through connections remains constant?

many thanks

John
Reply
#2
Hi,
A similar question to yours was asked on the forum, and here is my answer
https://forum.curvyeditor.com/thread-893...ml#pid3440
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
Ah makes sense, thank you.

I'm not 100% clear though, once I have calculated what the speed should be according to those links, would I set the SplineController speed in my Custom Selector script once I have determined which spline is next? Is that the correct place to change the speed?
Reply
#4
I would personally have put the speed change in the event handler of the OnEndReached or the OnControlPointReached events, but I see no argument to oppose the idea of putting it in the Custom Selector script, besides it not being good design (a selector should select and nothing more).
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#5
Thank you again for your help, very much appreciated.

John
Reply
#6
You are welcome. If and when you feel like it, please leave a review for the asset, that helps a lot.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Information Connections tutorial available _Aka_ 0 295 05-22-2020, 01:46 PM
Last Post: _Aka_
  make "GetCurrentControlPoint" in SplineController more accessable VampirasuGameStudio 2 879 04-19-2020, 02:03 PM
Last Post: _Aka_
  Facade class which inherits SplineController ATHellboy 1 625 01-30-2020, 10:13 AM
Last Post: _Aka_
  Trying to create a moving train that slows and stops at stations Novian 11 7,485 12-12-2019, 06:40 PM
Last Post: _Aka_

Forum Jump: