08-18-2020, 04:44 PM
(This post was last modified: 08-18-2020, 04:46 PM by Maltakreuz.)
(08-17-2020, 02:44 PM)_Aka_ Wrote: ...Hi, thank you for a quick response. Well yes, my project developmentĀ lasts a little bit longer as i wanted. Probably it was unity 4.3 -> 5.6 -> 2018.2 -> 2019.4 updates. And Curvy 2.0.4 seems to work until 2018.2 pretty well, so i just used the old version.
1. Thank you, yep after some adjustments the old code almost works again. My old code expects splines in relative mode, but old function "MoveByLengthFast" ensures player moves same speed on long and short segments. But with this "hack" my code seems to work well in relative mode but moving in world unity. I basically switching to Abs-mode for short time:
Code:
splineController.MoveMode = CurvyController.MoveModeEnum.AbsolutePrecise;
splineController.DoAdvance(spd, Time.deltaTime);
splineController.MoveMode = CurvyController.MoveModeEnum.Relative;
2. Yes, it works. Thank you!
3. It seems to work well with splines created in 2.0.4. No problems was found.
So thank you for your help.
P.S. It would be probably much nicer just rewrite it all from scratch, new API looks easierĀ indeed, but ... well i did not planned any curvy-programming. I just want to update to unity 2019