From af2f43b9f9ab2aac3853e77af44d2053d7cb5900 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 30 Mar 2024 17:19:11 +0100 Subject: [PATCH] fix hud speed display --- src/hud.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/hud.rs b/src/hud.rs index 6e77a35..582a0cb 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -1,6 +1,7 @@ use crate::{settings, actor, audio, nature}; use bevy::prelude::*; use bevy::diagnostic::{DiagnosticsStore, FrameTimeDiagnosticsPlugin}; +use bevy_xpbd_3d::prelude::*; use std::collections::VecDeque; use std::time::SystemTime; @@ -370,7 +371,8 @@ fn update( diagnostics: Res, time: Res