# Tutorial doesn't have physics

**URL:** <https://phaser.discourse.group/t/tutorial-doesnt-have-physics/13634>\
**Category:** Phaser 3\
**Created:** [October 12, 2023, 6:40am UTC](https://phaser.discourse.group/t/tutorial-doesnt-have-physics/13634 "2023-10-12T06:40:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![david-guy-1](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/david-guy-1/32/7561_2.png) [@david-guy-1](https://phaser.discourse.group/u/david-guy-1)\
**Post date:** [October 12, 2023, 6:40am UTC](https://phaser.discourse.group/t/tutorial-doesnt-have-physics/13634/1 "2023-10-12T06:40:26Z")

</div>

I quote this from [Making your first Phaser 3 game: Part 1 - Introduction - Learn - Phaser](https://phaser.io/tutorials/making-your-first-phaser-3-game/part1)

```javascript
var config = {
    type: Phaser.AUTO,
    width: 800,
    height: 600,
    scene: {
        preload: preload,
        create: create,
        update: update
    }
};

```

In particular, the “physics” key is missing. This causes things like “this.physics.add” in the create function to fail, as this.physics is undefined.

I notice that it’s added in the second page, but that’s only AFTER the first use of “this.physics.add”. I think it should be moved to before it (or even at the beginning) to avoid confusion.

---

<div class="post-metadata">

**Author:** ![rich](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/rich/32/4_2.png) [@rich](https://phaser.discourse.group/u/rich)\
**Post date:** [October 14, 2023, 12:21pm UTC](https://phaser.discourse.group/t/tutorial-doesnt-have-physics/13634/2 "2023-10-14T12:21:12Z")

</div>

**Immediately** after the code that creates the physics platforms it says:

> Glancing quickly at the code you’ll see a call to `this.physics` . This means we’re using the Arcade Physics system, but before we can do that we need to add it to our Game Config to tell Phaser our game requires it. So let’s update that to include physics support. Here is the revised game config:

I guess this part could come first, but they’re literally head to toe in the same paragraph.
