use ecs::Component; use crate::vector::Vec3; #[derive(Debug, Component)] pub struct Camera { pub position: Vec3, pub target: Vec3, pub global_up: Vec3, pub current: bool, } impl Default for Camera { fn default() -> Self { Self { position: Vec3 { x: 0.0, y: 0.0, z: 3.0 }, target: Vec3::default(), global_up: Vec3::UP, current: false, } } }