Implement dominance.

This commit is contained in:
Crozet Sébastien
2021-02-24 13:26:51 +01:00
parent 3cc2738e5f
commit 96ecb877e2
11 changed files with 42 additions and 10 deletions

View File

@@ -555,6 +555,8 @@ impl NarrowPhase {
manifold.data.solver_contacts.clear();
manifold.data.body_pair = BodyPair::new(co1.parent(), co2.parent());
manifold.data.solver_flags = solver_flags;
manifold.data.relative_dominance =
rb1.effective_dominance_group() - rb2.effective_dominance_group();
manifold.data.normal = world_pos1 * manifold.local_n1;
// Generate solver contacts.