summaryrefslogtreecommitdiff
path: root/engine/src/camera.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-08-17 13:43:45 +0200
committerHampusM <hampus@hampusmat.com>2024-08-17 13:43:45 +0200
commit60f6a0b7783d6d3684f22f8def3c1097963aa3ff (patch)
treef5df89fd47a802c68d0717cdc144a891750780cd /engine/src/camera.rs
parentc4686c2992417545e7a05a6a40ee9f1a8bbf3b96 (diff)
refactor(engine): remove position field from Camera component
Diffstat (limited to 'engine/src/camera.rs')
-rw-r--r--engine/src/camera.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/engine/src/camera.rs b/engine/src/camera.rs
index 5b71e2f..46b7293 100644
--- a/engine/src/camera.rs
+++ b/engine/src/camera.rs
@@ -8,7 +8,6 @@ pub mod fly;
#[derive(Debug, Component)]
pub struct Camera
{
- pub position: Vec3<f32>,
pub target: Vec3<f32>,
pub global_up: Vec3<f32>,
pub current: bool,
@@ -20,7 +19,6 @@ 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,