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
  Left-right movement, and spline follow shihaya 3 10 07-12-2024, 12:50 PM
Last Post: _Aka_
  Controler Speed from metadata Bryan Thatcher 4 10 06-25-2024, 11:18 AM
Last Post: _Aka_
Question VolumeController CrossRelativePosition Very Choppy Movement pako88 5 10 06-07-2024, 03:43 PM
Last Post: _Aka_
  Add noise to spline controller movement DekoGames 2 10 02-06-2024, 01:28 PM
Last Post: DekoGames

Forum Jump: