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
Question Setting instantiated object to spline, then starting movement? _RicO 3 6 06-28-2023, 06:01 PM
Last Post: _Aka_
  Change Speed on spline linkinballzpokemon 1 28 12-29-2021, 10:58 AM
Last Post: _Aka_
  Controller speed questions Lupp_ 6 1,862 01-20-2021, 09:20 PM
Last Post: _Aka_
Question Changing speed between ControlPoints funkd 5 2,468 10-02-2020, 12:36 PM
Last Post: _Aka_

Forum Jump: