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
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 7 02-23-2024, 09:44 AM
Last Post: _Aka_
  How to get travelled distance and distance to travel ommlmx 3 31 12-04-2023, 03:28 PM
Last Post: _Aka_
Information Extending the ConnectedControlPointsSelector, based on Player provided input EverknightDev 1 13 04-03-2023, 10:44 PM
Last Post: _Aka_

Forum Jump: