useVelocity
useVelocity
accepts a motion value and returns a new one that updates with the provided motion value's velocity.
Usage
Import useVelocity
from Motion:
Pass any numerical motion value to useVelocity
. It'll return a new motion value that updates with the velocity of the original value.
Any numerical motion value will work. Even one returned from useVelocity
.