Skip to content

Commit

Permalink
animation: fix another "error: cannot assign to a.value: expected `…
Browse files Browse the repository at this point in the history
…f32`, not `f64`"
  • Loading branch information
larpon committed Jan 1, 2024
1 parent c8a7bb2 commit 343d0e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/animation.v
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ fn (fa &FollowAnimator[T]) step(dt f64) {
value := a.value + ((a.target - a.value) * 0.1 * (dt * (dt * 1000)) * a.multiply)
// value := utils.remap(a.t, 0, 1.0, a.from, a.to)
lerp_value := utils.lerp(value, a.prev_value, dt)
a.value = lerp_value
a.value = T(lerp_value)

// round_to_even() ?? (Banker's round)
p_running := a.running
Expand Down

0 comments on commit 343d0e9

Please sign in to comment.