(x, y, r)
| 1 | class Bird { |
| 2 | constructor(x, y, r) { |
| 3 | const options = { |
| 4 | restitution: 0.5 |
| 5 | }; |
| 6 | this.body = Matter.Bodies.circle(x, y, r, options); |
| 7 | Matter.Body.setMass(this.body, this.body.mass * 4); |
| 8 | Matter.World.add(world, this.body); |
| 9 | this.r = r; |
| 10 | } |
| 11 | |
| 12 | show() { |
| 13 | const pos = this.body.position; |
nothing calls this directly
no outgoing calls
no test coverage detected