diff --git a/strafe-client/src/mouse_interpolator.rs b/strafe-client/src/mouse_interpolator.rs index 07d2c4c..c28665f 100644 --- a/strafe-client/src/mouse_interpolator.rs +++ b/strafe-client/src/mouse_interpolator.rs @@ -37,6 +37,8 @@ pub struct MouseInterpolator{ session_timeline:std::collections::VecDeque, physics_timeline:std::collections::VecDeque, } +// Maybe MouseInterpolator manipulation is better expressed using impls +// and called from Instruction trait impls in session impl InstructionConsumer for MouseInterpolator{ type TimeInner=SessionTimeInner; fn process_instruction(&mut self,ins:TimedInterpolatorInstruction){ @@ -66,7 +68,8 @@ impl MouseInterpolator{ // new input } pub fn drop_output<'a>(&mut self,ins:TimedInstruction,SessionTimeInner>){ - // + // so the idea is that Session gets in the middle of MouseInterpolator instruction processing + // and injects its own side effects, notably running physics } pub fn next_output(&self,time_limit:SessionTime)->Option,SessionTimeInner>>{ None