Greetings!
I just started learning Phaser 3 in a few months and everything seems fine until I stumbled upon to this Phaser.Matter with complex physics and it gave me a headache.
So in creating a wrecking ball “style” movement with Phaser Arcade Physics seems awesome since what I gotta do is just put physics in an image and add a collider.
create(){
// ...
objects.blade = this.add.image(400, 1300, 'blade').setOrigin(0.5,0);
objects.move = 0.0;
// ...
}
update(){
// ...
objects.blade.rotation=0.1 + Math.sin(objects.move) * 1.3;
objects.move += 0.05;
// ...
}
But in Phaser.Matter I can’t seem to find a tutorial for that. If anyone can just lend me some light like sending a code snippet or send a tutorial. That will be much appreciated.