diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-08 15:23:24 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-08 15:23:24 +0800 |
| commit | fc0d77d6838b16d811ffe5e999d3d77d499b470f (patch) | |
| tree | 00565a452f9045b4fb357ae04a1cae349163839a /plugins/movement/src/position.rs | |
chore: initialize project workspace and movement plugin
Diffstat (limited to 'plugins/movement/src/position.rs')
| -rw-r--r-- | plugins/movement/src/position.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/movement/src/position.rs b/plugins/movement/src/position.rs new file mode 100644 index 0000000..c6dc598 --- /dev/null +++ b/plugins/movement/src/position.rs @@ -0,0 +1,12 @@ +use bevy::{ + ecs::component::Component, + math::Vec3, + prelude::{Deref, DerefMut}, +}; + +/// Used to represent the actual position of the current entity +#[derive(Component, Deref, DerefMut, PartialEq, Default, Clone)] +pub struct Position { + #[deref] + pos: Vec3, +} |
