Skip to content

Commit 627fb21

Browse files
committed
algebruh mistake
1 parent ae03f01 commit 627fb21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

implementation_details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ let (from, to, blend) = if i == 0 {
322322
} else {
323323
let a = buf[i-1].tick;
324324
let b = buf[i].tick;
325-
let blend = ((b as f32 * timestep) - playback_time) / ((b - a) as f32 * timestep);
325+
let blend = (playback_time - (a as f32 * timestep)) / ((b - a) as f32 * timestep);
326326
(a, b, blend)
327327
}
328328

0 commit comments

Comments
 (0)