use bevy::prelude::*;
#[derive(Component, Reflect, Default)]
#[reflect(Component)]
pub struct Tug {
pub pull: Vec3,
}
impl Tug {
pub fn new(x: f32,y: f32 ,z: f32) -> Self {
Self {
pull: Vec3::new(x, y, z)
}
}
}
#[derive(Component)]
pub struct Ring {
pub axis: Vec3,
}
impl Ring {
pub fn new(x: f32, y: f32, z: f32) -> Self {
Self {
axis: Vec3::new(x, y, z)
}
}
}
#[derive(Component)]
pub struct TransformWidget {
pub bound_entity: Entity,
}
#[derive(Component)]
pub struct TransformWidgetMarker {
pub transform_widget_entity: Entity,
pub entity_to_transform: Entity,
}