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 helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting Distance from a World Point zorksox 3 5 04-16-2024, 07:30 PM
Last Post: _Aka_
Question Volume Spots inter group distance Sacryn 1 3 02-27-2024, 04:08 PM
Last Post: _Aka_
  Distance travelled across multiple splines jh092 1 8 02-23-2024, 09:44 AM
Last Post: _Aka_
  How to get travelled distance and distance to travel ommlmx 3 33 12-04-2023, 03:28 PM
Last Post: _Aka_

Forum Jump: