4 lines
176 B
JavaScript
4 lines
176 B
JavaScript
export function velocityPerSecond(velocity, frameDuration) {
|
|
return frameDuration ? velocity * (1000 / frameDuration) : 0;
|
|
}
|
|
//# sourceMappingURL=velocity-per-second.js.map
|