Phaser in 3D with Physics (yes, it works, using enable3d!)

  • Slope Angles are included.
  • Unfortunately, I do not plan to add texture splatting. But I posted an example. You can look at its source code and write your own adaptation.

It does only work so well, because I can easily run all the physics inside the worker. For Phaser game it would not be easy, since the physics is implemented inside Phaser.

@rich Maybe in Phaser 4, where the physics will be a separate module, workers would be a nice option?

Basically I use webpack to bundle all the worker code inside a bundle. I do not use special plugins like “worker-loader” or “worker-plugin”. Just a simple webpack configuration.

Also I use comlink, which helps a lot!