# Is "enableBody:true" obsolete?

**URL:** <https://phaser.discourse.group/t/is-enablebody-true-obsolete/13800>\
**Category:** Phaser 3\
**Created:** [December 11, 2023, 9:12pm UTC](https://phaser.discourse.group/t/is-enablebody-true-obsolete/13800 "2023-12-11T21:12:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DoogsDay](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/doogsday/32/7911_2.png) [@DoogsDay](https://phaser.discourse.group/u/DoogsDay)\
**Post date:** [December 11, 2023, 9:12pm UTC](https://phaser.discourse.group/t/is-enablebody-true-obsolete/13800/1 "2023-12-11T21:12:20Z")

</div>

Hi, I’m new to this world and have been learning Phaser 3 for a few weeks. Right now I’m taking a tutorial about physics and collisions, but I have a doubt, the tutorial has this:

```js
physics: {
    default: 'arcade',
    arcade: {
      gravity: { y: 200 },
      enableBody: true,
    }
  },

```

But never explain what enableBody: true does. I commented and set this line to false, and tested, but in the example, the collisions still work… is something needed in the example?

```js
function preload() {
  this.load.image('bug1', 'https://content.codecademy.com/courses/learn-phaser/physics/bug_1.png');
  this.load.image('bug2', 'https://content.codecademy.com/courses/learn-phaser/physics/bug_2.png');
  this.load.image('bug3', 'https://content.codecademy.com/courses/learn-phaser/physics/bug_3.png');
  this.load.image('platform', 'https://content.codecademy.com/courses/learn-phaser/physics/platform.png');
  this.load.image('codey', 'https://content.codecademy.com/courses/learn-phaser/physics/codey.png');
}

const gameState = {};

function create() {
  gameState.player = this.physics.add.sprite(225, 440, 'codey').setScale(.5);
  
  // Añade el GameObject.staticGroup para actuar como plataforma
  const platforms = this.physics.add.staticGroup();
  // Crea para dicho GameObject.staticGrup la imagen que se usara y su posición x,y
  platforms.create(225, 510, 'platform');
}

function update() {
}

const config = {
  type: Phaser.AUTO,
  width: 450,
  height: 500,
  backgroundColor: "b9eaff",
  physics: {
    default: 'arcade',
    arcade: {
      gravity: { y: 200 },
      enableBody: true,
    }
  },
  scene: {
    preload,
    create,
    update
  }
};

const game = new Phaser.Game(config);

```

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [December 11, 2023, 9:19pm UTC](https://phaser.discourse.group/t/is-enablebody-true-obsolete/13800/2 "2023-12-11T21:19:12Z")

</div>

👋

There’s never been an `enableBody` in any Phaser 3 config, AFAIK.

---

<div class="post-metadata">

**Author:** ![DoogsDay](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/doogsday/32/7911_2.png) [@DoogsDay](https://phaser.discourse.group/u/DoogsDay)\
**Post date:** [December 11, 2023, 9:22pm UTC](https://phaser.discourse.group/t/is-enablebody-true-obsolete/13800/3 "2023-12-11T21:22:31Z")

</div>

Thanks, good to know… maybe this is something from Phaser 2.x? Or this config has never been in Phaser

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [December 11, 2023, 10:46pm UTC](https://phaser.discourse.group/t/is-enablebody-true-obsolete/13800/4 "2023-12-11T22:46:57Z")

</div>

There was a Group property [enableBody](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#enableBody) in Phaser 2, and sometimes people put that in Phaser 3 code by mistake.

```js
// Phaser 2 only!
group.enableBody = true;

```
