pub fn update(&mut self, delta: f32) {
        self.load_parameters();
        // do motion update here
        self.save_parameters();
        if let Some(exp) = self.current_expression.as_ref() {
            if let Some(exp) = self.expressions.get(exp) {
                exp.apply(&mut self.model, self.expression_weight);
            }
        }
        for con in self.controllers_enabled.ones() {
            self.controllers[con].update_parameters(&mut self.model, delta);
        }
        self.model.update();
    }
/// Applies the expression(if set), runs the controllers in order and
/// updates the model.
Applies the expression(if set), runs the controllers in order and
updates the model.
Applies the expression ( if set ) runs the controllers in order and updates the model .
pub fn update(&mut self, delta: f32) {
        self.load_parameters();
        // do motion update here
        self.save_parameters();
        if let Some(exp) = self.current_expression.as_ref() {
            if let Some(exp) = self.expressions.get(exp) {
                exp.apply(&mut self.model, self.expression_weight);
            }
        }
        for con in self.controllers_enabled.ones() {
            self.controllers[con].update_parameters(&mut self.model, delta);
        }
        self.model.update();
    }
pub fn update ( & mut self , delta : f32 ) { self . load_parameters ( ) ; // do motion update here self . save_parameters ( ) ; if let Some ( exp ) = self . current_expression . as_ref ( ) { if let Some ( exp ) = self . expressions . get ( exp ) { exp . apply ( & mut self . model , self . expression_weight ) ; } } for con in self . controllers_enabled . ones ( ) { self . controllers [ con ] . update_parameters ( & mut self . model , delta ) ; } self . model . update ( ) ; }
Applies the expression(if set), runs the controllers in order and
updates the model.
Applies the expression ( if set ) runs the controllers in order and updates the model .
&mut self
delta
f32
&mut self
delta
f32