pub fn compute_pseudo_impulse(
        &self,
        a: &Physics,
        b: Option<&Physics>,
        config: &PhysicsConfig,
        dt: &UpdateDt,
    ) -> f32 {
        let k_n = a.mass_data.inv_mass + b.map(|b| b.mass_data.inv_mass).unwrap_or(0.);
        let v_bias = self.compute_bias_velocity(config, dt);

        -v_bias / k_n
    }
/// Compute the required pseudo-impulse to satisfy the constraint.
Compute the required pseudo-impulse to satisfy the constraint.
Compute the required pseudo - impulse to satisfy the constraint .
pub fn compute_pseudo_impulse(
        &self,
        a: &Physics,
        b: Option<&Physics>,
        config: &PhysicsConfig,
        dt: &UpdateDt,
    ) -> f32 {
        let k_n = a.mass_data.inv_mass + b.map(|b| b.mass_data.inv_mass).unwrap_or(0.);
        let v_bias = self.compute_bias_velocity(config, dt);
        -v_bias / k_n
    }
pub fn compute_pseudo_impulse ( & self , a : & Physics , b : Option < & Physics > , config : & PhysicsConfig , dt : & UpdateDt , ) -> f32 { let k_n = a . mass_data . inv_mass + b . map ( | b | b . mass_data . inv_mass ) . unwrap_or ( 0. ) ; let v_bias = self . compute_bias_velocity ( config , dt ) ; - v_bias / k_n }
Compute the required pseudo-impulse to satisfy the constraint.
Compute the required pseudo - impulse to satisfy the constraint .
&self
a
&Physics
b
Option<&Physics>
config
&PhysicsConfig
dt
&UpdateDt
&self
a
&Physics
b
Option<&Physics>
config
&PhysicsConfig
dt
&UpdateDt