Skip to content

Commit

Permalink
debug collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
jwklong committed Dec 3, 2024
1 parent 12f038b commit 30f409b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extensions/jwPsychic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ class Extension {
if (!body) return new jwArray.Type()

let collisions = Matter.Query.collides(body, Object.values(this.bodies).filter(v => v !== body))
console.debug(collisions)
return new jwArray.Type(collisions.map(v => new Target.Type(v.bodyA.parent.label)))
}
}
Expand Down

0 comments on commit 30f409b

Please sign in to comment.