diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-08 15:27:04 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-08 15:27:04 +0800 |
| commit | 52e0befc296dd58e49de2aeec4cee78be9772639 (patch) | |
| tree | 8a1bfaeef8b4fcf630c9bb9a61430a5a6d3fd3c9 /plugins/movement/src/reducer.rs | |
| parent | fc0d77d6838b16d811ffe5e999d3d77d499b470f (diff) | |
chore: use bevy Transform for movement
Replace the custom Position component with Bevy's built-in Transform
for entity movement.
Diffstat (limited to 'plugins/movement/src/reducer.rs')
| -rw-r--r-- | plugins/movement/src/reducer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
