From 52e0befc296dd58e49de2aeec4cee78be9772639 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 8 Aug 2026 15:27:04 +0800 Subject: chore: use bevy Transform for movement Replace the custom Position component with Bevy's built-in Transform for entity movement. --- plugins/movement/src/reducer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/movement/src/reducer.rs') diff --git a/plugins/movement/src/reducer.rs b/plugins/movement/src/reducer.rs index 334d37e..4827dd3 100644 --- a/plugins/movement/src/reducer.rs +++ b/plugins/movement/src/reducer.rs @@ -5,10 +5,10 @@ use crate::Velocity; /// Controls how Velocity is reduced #[derive(Component)] pub enum VelocityReducer { - /// Sync mode, only applies the current Velocity to Position each time, does not reduce itself + /// Sync mode, only applies the current Velocity to translation each time, does not reduce itself Sync, - /// Move mode, directly zeroes out the velocity (momentum is transferred to Position) + /// Move mode, directly zeroes out the velocity (momentum is transferred to translation) Move, /// Constant reduction mode, reduces by a fixed amount each time until it becomes Vec3::ZERO -- cgit