Hello I want create config and mix this a two physics in one project. It is possible to did?
This is not working.
class MainScene extends Phaser.Scene
{
constructor(){
super({key: 'SceneMain'});
}
}
var config = {
type: Phaser.AUTO,
width: 1300,
height: 1000,
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH,
},
scene: {
scene: MainScene,
physics: {
arcade: {
debug: true,
gravity: { y: 200 }
},
matter: {
debug: true,
gravity: { y: 0.5 }
}
}
}
};