Jump to content

How to remove matter colliders


RollinSafary
 Share

Recommended Posts

```
setColliders (x, y, side, index) {
    // collider a
    this.colliderA = this.scene.matter.add.circle(x - side * 150, y, 7, {
      label: 'collider_a',
      isStatic: true,
    })
    // collider b
    this.colliderB = this.scene.matter.add.circle(x, y, 7, {
      label: 'collider_b',
      isStatic: true,
    })
    // collider basket
    this.colliderBasket = this.scene.matter.add.rectangle(
      x - side * 73,
      y,
      120,
      30,
      {
        label: `Basket${index}`,
        isStatic: true,
        isSensor: true,
      },
    )
  }
```

which function will remove them ?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...