Implement multibody joints and the new solver

This commit is contained in:
Sébastien Crozet
2022-01-02 14:47:40 +01:00
parent b45d4b5ac2
commit f74b8401ad
182 changed files with 9871 additions and 12645 deletions

View File

@@ -968,9 +968,7 @@ impl NarrowPhase {
friction,
restitution,
tangent_velocity: Vector::zeros(),
warmstart_impulse: contact.data.impulse,
warmstart_tangent_impulse: contact.data.tangent_impulse,
prev_rhs: contact.data.rhs,
is_new: contact.data.impulse == 0.0,
};
manifold.data.solver_contacts.push(solver_contact);
@@ -1027,7 +1025,7 @@ impl NarrowPhase {
}
/// Retrieve all the interactions with at least one contact point, happening between two active bodies.
// NOTE: this is very similar to the code from JointSet::select_active_interactions.
// NOTE: this is very similar to the code from ImpulseJointSet::select_active_interactions.
pub(crate) fn select_active_contacts<'a, Bodies>(
&'a mut self,
islands: &IslandManager,