diff --git a/examples/demo.rs b/examples/demo.rs index 7dbb49e..d02b73b 100644 --- a/examples/demo.rs +++ b/examples/demo.rs @@ -4,7 +4,7 @@ use bevy::{ render::primitives::{Aabb, Sphere}, }; use big_space::{ - camera::{CameraController, CameraInput, CameraVelocity}, + camera::{CameraController, CameraInput}, FloatingOrigin, GridCell, }; @@ -37,11 +37,7 @@ fn setup( }, GridCell::::default(), // All spatial entities need this component FloatingOrigin, // Important: marks this as the entity to use as the floating origin - CameraController { - max_speed: 10e35, - smoothness: 0.8, - ..default() - }, // Built-in camera controller + CameraController::default().with_max_speed(10e35), // Built-in camera controller )); let mesh_handle = meshes.add( @@ -53,15 +49,15 @@ fn setup( .unwrap(), ); let matl_handle = materials.add(StandardMaterial { - base_color: Color::MIDNIGHT_BLUE, + base_color: Color::BLUE, perceptual_roughness: 0.8, reflectance: 1.0, ..default() }); let mut translation = Vec3::ZERO; - for i in 1..=100i128 { - let j = i.pow(14) as f32; + for i in 1..=37_i128 { + let j = 10_f32.powf(i as f32 - 10.0) as f32; translation.x += j; commands.spawn(( PbrBundle { @@ -119,7 +115,8 @@ fn ui_text_system( mut text: Query<&mut Text, With>, time: Res