Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Speed variable in Spline Controller
#1
Hello all

I'd like to modify the Speed variable in the SplineController script
How ever accessing the sped vairable with a script did not change the actual parameter in the component "spline controller" in the editor.

I see that the speed variable is a read only variable perhaps changing is to read and write would help me.
what your experience with it?
Reply
#2
Hi,
SplineController, and all the other controllers, have a read/write Speed property.
I attached to this post a script (and the scene to test it) that reduces a SplineController's Speed by half every second, and it gets updated in the editor as well.
Do you manage to compile and run this test script? If not, please answer the questions I put in my answer to your mail, so I can debug your issue.
Thanks and have a nice day


Attached Files
.zip   SpeedReducer.zip (Size: 5.09 KB / Downloads: 6)
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
  Spline object on a spline path ATHellboy 15 322 Yesterday, 12:17 AM
Last Post: _Aka_
  Convert position of a point on a spline to another spline which is connected ATHellboy 5 107 02-17-2020, 12:17 PM
Last Post: _Aka_
  Refresh spline doesn't seem to be working dazz777 6 684 01-22-2020, 12:55 AM
Last Post: _Aka_
Big Grin How to get a point in Spline that is parallel with another Spline? curvyuser007 5 275 01-20-2020, 10:18 PM
Last Post: curvyuser007

Forum Jump: