Fix parallel build.

This commit is contained in:
Sébastien Crozet
2022-01-16 16:37:44 +01:00
parent b631fe9193
commit 8213e92f14

View File

@@ -247,7 +247,7 @@ impl ParallelIslandSolver {
// NOTE: `dvel.angular` is actually storing angular velocity delta multiplied
// by the square root of the inertia tensor:
dvel.angular += rb_mass_props.effective_world_inv_inertia_sqrt * rb_forces.torque * params.dt;
dvel.linear += rb_forces.force * (rb_mass_props.effective_inv_mass * params.dt);
dvel.linear += rb_forces.force.component_mul(&rb_mass_props.effective_inv_mass) * params.dt;
}
}