applied matter constraints to superposed concernements clones
This commit is contained in:
@@ -76,7 +76,7 @@ export default {
|
||||
'paper_symbol_definitions'])
|
||||
},
|
||||
created () {
|
||||
// console.log(`ConcernementsMapItem ${this.concernement.id} created`, this.canvasMap, this.matterEngine);
|
||||
console.log(`ConcernementsMapItem ${this.concernement.id} created`, this.canvasMap, this.matterEngine);
|
||||
this.id = this.concernement.id
|
||||
// this.entites = this.concernement.entites
|
||||
this.entites = this.concernement.revisions_byid[this.concernement.revision_id].entites;
|
||||
@@ -408,7 +408,7 @@ export default {
|
||||
this.body = Matter.Body.create({
|
||||
parts: this.body_parts,
|
||||
item_type: 'concernement',
|
||||
id: this.concernement.id,
|
||||
id: this.superposition_id ? `${this.concernement.id}_${this.superposition_id}` : this.concernement.id,
|
||||
frictionAir: 0,
|
||||
// mass: Math.pow(3, this.entites.length),
|
||||
// mass: 10,
|
||||
@@ -476,7 +476,7 @@ export default {
|
||||
pivot: new paper.Point(this.pos),
|
||||
name: this.superposition_id ? `clone_${this.id}.${this.superposition_id}` : `main_${this.id}`,
|
||||
cid: this.id,
|
||||
superosition_id: this.superposition_id
|
||||
superposition_id: this.superposition_id
|
||||
});
|
||||
|
||||
// the sub items for one concernement
|
||||
|
||||
Reference in New Issue
Block a user