# This.matter.add.image

**URL:** <https://phaser.discourse.group/t/this-matter-add-image/7992>\
**Category:** Phaser 3\
**Created:** [October 31, 2020, 6:52am UTC](https://phaser.discourse.group/t/this-matter-add-image/7992 "2020-10-31T06:52:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Turner](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/martin_turner/32/4193_2.png) [@Martin\_Turner](https://phaser.discourse.group/u/Martin_Turner)\
**Post date:** [October 31, 2020, 6:52am UTC](https://phaser.discourse.group/t/this-matter-add-image/7992/1 "2020-10-31T06:52:09Z")

</div>

Hi There.

I cant understand why some body properties work when you add a matter image and some don’t.

For example…

This Works. Restitution is set  
player = this.matter.add.image(X, Y, ‘ship’, null, { isStatic:false, restitution: 0.8 })

This does not set the mass.  
player = this.matter.add.image(X, Y, ‘ship’, null, { isStatic:false, restitution: 0.8, mass:100})

I also tried other properties such as scale and density, as per

> **[Phaser 3 API Documentation - Namespace: Matter](https://photonstorm.github.io/phaser3-docs/Phaser.Types.Physics.Matter.html#.MatterBodyConfig)**

  
but they don’t seem to work either.

In fact one of the demos show’s mass set as above.

> **[Phaser - Examples - Ignore Gravity](https://phaser.io/examples/v3/view/physics/matterjs/ignore-gravity)**
>
> Desktop and Mobile HTML5 game framework. A fast, free and fun open source framework for Canvas and WebGL powered browser games.

What am I missing.  
Cheers

ps. I realise that I can do after the fact.  
player.setDensity(200)  
player.setScale(0.5)
