diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 6 insertions, 2 deletions
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<dyn Error>> 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<dyn Error>> ); engine.add_extension(FlyCameraExtension(FlyCameraOptions { - camera_speed: 3.0, mouse_sensitivity: 0.2, })); |