L
L
lightalex2015-08-04 10:06:32
JavaScript
lightalex, 2015-08-04 10:06:32

How to choose a formula?

Hello everyone The
task is to animate the block
There is a distance S that the block must go in both directions
That is, the block must return to its original position
There is a speed V that smoothly decreases to zero ( cubic-bezier.com/#0,.67,.3, 1 )
The problem is that I didn’t study math well at school and now I can’t figure out how to correctly calculate the speed along the path of movement in order to have time to go S back and forth and not stand in the middle of the path
Great mathematicians, please help!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Kolya K, 2015-08-04
@lightalex

Time to stop will be t=v0/a Then the distance traveled will be S=v0*ta*t^2/2

S
Sergey, 2015-08-04
@butteff

S/V = T.
S = TV
V = S/T
V - speed
T - time
S - path
S

D
Dmitry Kovalsky, 2015-08-04
@dmitryKovalskiy

Does the block move in a straight line? Or fluctuating along a thread?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question