Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Negative speed in animated movement
#1
I didn't find how to use negative speed in animated movement. So I changed in CurvyController: line 1155 (getAnimationTF method)

float step = AbsSpeed * Animation.Evaluate(Mathf.Clamp01(mShotTime / TimeScale));
to
float step = Speed * Animation.Evaluate(Mathf.Clamp01(mShotTime / TimeScale));

Is there a better way to achieve this behaviour?
Reply
#2
(07-04-2016, 11:48 AM)drag_c Wrote: I didn't find how to use negative speed in animated movement. So I changed in CurvyController: line 1155 (getAnimationTF method)

float step = AbsSpeed * Animation.Evaluate(Mathf.Clamp01(mShotTime / TimeScale));
to
float step = Speed * Animation.Evaluate(Mathf.Clamp01(mShotTime / TimeScale));

Is there a better way to achieve this behaviour?

You can change the direction and prevent turning the a controller.
(Henry Ford) Each hour more of searching is each hour less of your live time.

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Controller speed questions Lupp_ 6 1,559 01-20-2021, 09:20 PM
Last Post: _Aka_
Question Changing speed between ControlPoints funkd 5 2,143 10-02-2020, 12:36 PM
Last Post: _Aka_
  Updating old movement code Maltakreuz 3 2,091 08-18-2020, 04:49 PM
Last Post: _Aka_
  Movement on Curvy with MouseWheel staticdreams 1 1,121 06-22-2020, 12:13 PM
Last Post: _Aka_

Forum Jump: