X6Q2DCTTZVQ2HCA4BFLKONTXJ2AYHTBBZCARASBEKEDCDZ2YSPUQC
VICUJP7SGKKCO2ZWO5ACSO3OS4HV4JTXTHQHYSFOADANGUJ5ZDDAC
MKB2A5XCWBZO2E6QFE6PD36LF3IGMJCGJB5TGMRAPSKCKHS75ISAC
WQS2WD437EWG2CKPOY5TDWPEBE3US7LGHVAH2HVYQ7RW2L6FHJ5AC
use crate::camera;
mut rig: ResMut<camera::CameraRig>,
ui.collapsing("Camera Rig", |ui| { let mut lag = rig.lag(); if ui .add(egui::Slider::new(&mut lag, 0.0..=1.).text("Lag")) .changed() { rig.set_lag(lag); } });
ui.collapsing("Camera Rig", |ui| {
let mut lag = rig.lag();
if ui
.add(egui::Slider::new(&mut lag, 0.0..=1.).text("Lag"))
.changed()
{
rig.set_lag(lag);
}
});
self.lag = lag.clamp(0.0, 1.0 - f32::EPSILON);
self.lag = lag.clamp(0.0, 0.99);