6 lines
153 B
JavaScript
6 lines
153 B
JavaScript
function velocityPerSecond(velocity, frameDuration) {
|
|
return frameDuration ? velocity * (1000 / frameDuration) : 0;
|
|
}
|
|
|
|
export { velocityPerSecond };
|