From f27f7190965bb703f42525aab09a66ac4c21d0d0 Mon Sep 17 00:00:00 2001 From: Viktor Gustavsson Date: Mon, 4 Nov 2024 20:27:44 +0100 Subject: [PATCH] delta_seconds -> delta_secs --- examples/animation.rs | 2 +- examples/dev.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/animation.rs b/examples/animation.rs index 6eab80e..a26ae00 100644 --- a/examples/animation.rs +++ b/examples/animation.rs @@ -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; diff --git a/examples/dev.rs b/examples/dev.rs index 6c8147e..ab9a3ff 100644 --- a/examples/dev.rs +++ b/examples/dev.rs @@ -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) }