const config = {
// ...
physics: {
default: "arcade",
},
};Physics / notebook
Physics
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
this.physics.add.existing(this.ball);this.ball.body.setVelocity(150, 150);class ExampleScene extends Phaser.Scene {
// ...
update() {}
}