tested consraint to move the opened body, not very satisfying
This commit is contained in:
@@ -105,6 +105,7 @@ export default {
|
||||
},
|
||||
onClick (e) {
|
||||
console.log('onClick', this, e);
|
||||
// get the clicked element from matter
|
||||
const query = Matter.Query.point(Matter.Composite.allBodies(this.world), this.mouse.position)
|
||||
// console.log(this.mouse.position);
|
||||
// console.log(query);
|
||||
@@ -113,7 +114,6 @@ export default {
|
||||
// console.log('body id:', elmt.id);
|
||||
clickedIDs.push(elmt.id);
|
||||
});
|
||||
let opend
|
||||
this.concernements.forEach((concernement, index) => {
|
||||
this.openCloseConcernement(concernement.id, clickedIDs.indexOf(concernement.id) !== -1)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user