Skip to content

Commit

Permalink
delta_seconds -> delta_secs
Browse files Browse the repository at this point in the history
  • Loading branch information
villor committed Nov 4, 2024
1 parent fbbc38d commit f27f719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/animation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fn update(
for (entity, mut transform, mut animate, mut curve, mut cache, mut editor) in animate.iter_mut()
{
// update t
animate.t += animate.dir * animate.speed * time.delta_seconds();
animate.t += animate.dir * animate.speed * time.delta_secs();
if animate.t >= 1.0 {
animate.dir = -1.0;
animate.t = 1.0;
Expand Down
2 changes: 1 addition & 1 deletion examples/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn move_sample(
} else if dev_state.sample <= -0.5 {
dev_state.sample_dir = 1.0;
}
dev_state.sample += time.delta_seconds() * 0.3 * dev_state.sample_dir;
dev_state.sample += time.delta_secs() * 0.3 * dev_state.sample_dir;
}
editor.sample = Some(dev_state.sample)
}
Expand Down

0 comments on commit f27f719

Please sign in to comment.