Hi There.
Is it possible for the main camera in phaser to follow a matter physics object?
I have this code. While not producing an error, the screen just goes blank and the rest of my game does not work.
this.matter.world.setBounds();
this.cameras.main.setBounds(0, 0, 2000,2000);
player = this.matter.add.rectangle(200, 200, 100, 100, {});
this.cameras.main.startFollow(player);
I am confused about the relationship between Phaser and matterJS obects.
If I remove the startFollow line, my game works.
Any help appreciated.
Cheers