vec2-animate

animate a vec2 vector

npm install vec2-animate
8 downloads in the last month

vec2-animate

Animate a vector.

leadVector = animate(followVector, speed, fr)

Whenever leadVector changes, move followVector towards it at speed units per second. (attemps to update at fr times per second)

License

MIT

npm loves you