Finish animation when leap finishes

Leazy

You can change this now in User CP.
Reaction score
50
Hello!

I'm making a leap spell, and I want the leaping unit to finish the spell animation when it reaches the landing point. The leaping distance may vary.

Can anyone help me out with the math here?
(I'm trying to determine which animation speed to give the unit)

The leaper (Caster) travels 14 units every 0.03 sec. Animation time is 1.00 sec.
D = Distance
X = Animation speed to be set

What I'm doing is:
D/(0.03*14)=1.00*X
0.42D=X

Doesn't seem right though. Can anyone help me out here? (Been a while since I did math)

Thanks in advance!
 

seph ir oth

Mod'n Dat News Jon
Reaction score
262
"14 units every 0.03 sec"

(D/14) * 0.03 = Z, which is how long it takes to move from the starting position to the ending position.

Let Y be your animation length.

Your animation speed coefficient should then be Y / Z.

Hope that helps.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top