From c8c7012b4bbf72b082e50c76de2550e85c8ebfd0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 20 Aug 2024 20:34:05 +0200 Subject: fix: use fly camera properly again --- src/main.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index d47bcb2..8710a21 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,11 @@ use std::error::Error; use std::fs::read_to_string; use std::path::Path; -use engine::camera::fly::{Extension as FlyCameraExtension, Options as FlyCameraOptions}; +use engine::camera::fly::{ + Extension as FlyCameraExtension, + Fly as FlyCamera, + Options as FlyCameraOptions, +}; use engine::camera::{Active as ActiveCamera, Camera}; use engine::color::Color; use engine::data_types::dimens::Dimens; @@ -95,6 +99,7 @@ fn main() -> Result<(), Box> position: Vec3 { x: 0.0, y: 0.0, z: 3.0 }, }, ActiveCamera, + FlyCamera::default(), )); engine.add_sole(GlobalLight::default())?; @@ -113,7 +118,6 @@ fn main() -> Result<(), Box> ); engine.add_extension(FlyCameraExtension(FlyCameraOptions { - camera_speed: 3.0, mouse_sensitivity: 0.2, })); -- cgit v1.2.3-18-g5258