map_popup for superpositions OK

This commit is contained in:
2023-09-12 12:20:35 +02:00
parent aae6d0c9d5
commit 5836d39a38
4 changed files with 125 additions and 103 deletions

View File

@@ -1115,9 +1115,6 @@ export default {
this.superpositions_constraints.push(c);
Matter.Composite.add(this.world, c);
// keep a link the constraint into the concernement object (useful for tweening the constraint pointA & pointB in concernementMapItem)
// TODO this two lines make the all thing very slow
// concernementA.superposition_constraints[c.id] = c;
// concernementB.superposition_constraints[c.id] = c;
concernementA.superposition_constraints_id.push(c.id);
concernementB.superposition_constraints_id.push(c.id);
// record all superposed concernements for each concernement