mattjennings / react-phaser-fiber

Create Phaser 3 games using React
48 stars 10 forks source link

Opting-in any component to physics #26

Open mattjennings opened 4 years ago

mattjennings commented 4 years ago

re: https://github.com/mattjennings/react-phaser-fiber/issues/25#issuecomment-612120893

There are some game objects that aren't offered as Arcade* variants from Phaser that can still be opted-in via game.physics.add.existing.

Possible solutions:

mattjennings commented 4 years ago

I've added an <ArcadePhysics /> component in v0.3.0-beta.2. I'm favouring this approach, but still open to other ideas.