2026-05-31 13:54:31 +02:00

6 lines
153 B
JavaScript

function velocityPerSecond(velocity, frameDuration) {
return frameDuration ? velocity * (1000 / frameDuration) : 0;
}
export { velocityPerSecond };