From 8b724c9f988289c69c46071f46260b6b7aebd812 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 20 Aug 2024 19:44:23 +0200 Subject: refactor(engine): replace Camera current field with Active component --- engine/src/camera.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engine/src/camera.rs') diff --git a/engine/src/camera.rs b/engine/src/camera.rs index 46b7293..66150af 100644 --- a/engine/src/camera.rs +++ b/engine/src/camera.rs @@ -10,7 +10,6 @@ pub struct Camera { pub target: Vec3, pub global_up: Vec3, - pub current: bool, pub projection: Projection, } @@ -21,8 +20,11 @@ impl Default for Camera Self { target: Vec3::default(), global_up: Vec3::UP, - current: false, projection: Projection::Perspective(Perspective::default()), } } } + +/// Marker component for cameras that are active. +#[derive(Debug, Default, Clone, Copy, Component)] +pub struct Active; -- cgit v1.2.3-18-g5258