Trait Controller
experiment::controls
pub trait Controller { fn displacement( &mut self, ctx: &mut EventCtx<'_>, speed: Speed ) -> (f64, f64); }
fn displacement(&mut self, ctx: &mut EventCtx<'_>, speed: Speed) -> (f64, f64)
impl Controller for InstantController
impl Controller for RotateController
fn displacement( &mut self, ctx: &mut EventCtx<'_>, fwd_speed: Speed) -> (f64, f64)