# Multiple physics using scene classes

**URL:** <https://phaser.discourse.group/t/multiple-physics-using-scene-classes/6676>\
**Category:** Phaser 3\
**Created:** [June 14, 2020, 5:22pm UTC](https://phaser.discourse.group/t/multiple-physics-using-scene-classes/6676 "2020-06-14T17:22:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ross\_Evan](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/ross_evan/32/1142_2.png) [@Ross\_Evan](https://phaser.discourse.group/u/Ross_Evan)\
**Post date:** [June 14, 2020, 5:22pm UTC](https://phaser.discourse.group/t/multiple-physics-using-scene-classes/6676/1 "2020-06-14T17:22:33Z")

</div>

So, I want to implement both arcade and matter in my game. Problem is, it only seems to work when following the example on the website which is structured as such in the config object: ‘scene: {preload: preload, create: create}’ and not when I try to populate that field with my custom scenes. Furthermore, it will only allow me to choose one or the other, as long as I include the 'default: ‘arcade’ or ‘matter’. Is there a way around this?

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [July 4, 2020, 4:51pm UTC](https://phaser.discourse.group/t/multiple-physics-using-scene-classes/6676/2 "2020-07-04T16:51:50Z")

</div>

It’s like [http://labs.phaser.io/view.html?src=src\physics\multi\arcade%20and%20matter.js](http://labs.phaser.io/view.html?src=src%5Cphysics%5Cmulti%5Carcade%20and%20matter.js) but you use the scene class’s `config` argument, something like

```javascript
class Scene extends Phaser.Scene {
  constructor (config) {
    config.physics = {/* arcade, matter … */}
    super(config);
  }
}

```

---

<div class="post-metadata">

**Author:** ![Ross\_Evan](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/ross_evan/32/1142_2.png) [@Ross\_Evan](https://phaser.discourse.group/u/Ross_Evan)\
**Post date:** [July 4, 2020, 5:05pm UTC](https://phaser.discourse.group/t/multiple-physics-using-scene-classes/6676/3 "2020-07-04T17:05:14Z")

</div>

Ahh yes, since have come to this conclusion. I was wondering now, if there is more information available regarding custom collision shapes. I seem to be having issues with the Physics Editor software, which only renders a rectangular body. Although not related to phaser itself, I see is used often alongside matter to export custom terrains.
