(x, y, w, h)
| 23 | |
| 24 | class Box { |
| 25 | constructor(x, y, w, h) { |
| 26 | const options = { |
| 27 | restitution: 0.5 |
| 28 | }; |
| 29 | this.body = Matter.Bodies.rectangle(x, y, w, h, options); |
| 30 | Matter.World.add(world, this.body); |
| 31 | this.w = w; |
| 32 | this.h = h; |
| 33 | } |
| 34 | |
| 35 | show() { |
| 36 | const pos = this.body.position; |
nothing calls this directly
no outgoing calls
no test coverage detected