Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Distance-based CurvyController
#1
I'm looking to do my own controller for movement along a spline but instead of tracking speed as I see the existing Controllers do I'm looking to increment by a calculated (absolute) distance on each FixedUpdate. Looking at the implementation functions of CurvyController, is there a way you can see of implementing this behavior by extending it or will I have to do it another way, and if so how would you recommend doing so?

Thanks!
Reply
#2
Hi,
Maybe I am not understanding you properly, but if you want to move by a fixed update each fixed update, you can do it without modifying code by:
- Setting Update In to Fixed Update
- Setting Move Mode to Absolute
- Setting speed to distance_moved_by_frame / Time.fixedDeltaTime
Does my solution answer your need?
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
  Max distance between points HTRCH 1 371 07-11-2020, 01:07 PM
Last Post: _Aka_
  Time based movement Livealot 3 3,146 07-17-2018, 11:26 PM
Last Post: _Aka_
Big Grin Calculate distance between control points. _nico 3 4,721 10-08-2017, 02:05 PM
Last Post: PerryLif
  Animate movement with curve by distance, not time yandrako 7 9,387 03-02-2017, 12:43 PM
Last Post: yandrako

Forum Jump: