# Container physics

**URL:** <https://phaser.discourse.group/t/container-physics/365>\
**Category:** Phaser 3\
**Created:** [December 17, 2018, 9:15am UTC](https://phaser.discourse.group/t/container-physics/365 "2018-12-17T09:15:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jker](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@jker](https://phaser.discourse.group/u/jker)\
**Post date:** [December 17, 2018, 9:15am UTC](https://phaser.discourse.group/t/container-physics/365/1 "2018-12-17T09:15:18Z")

</div>

I was learning how to use containers and found an example:  
[http://labs.phaser.io/edit.html?src=src\game%20objects\container\matter%20physics%20sprite%20test.js](http://labs.phaser.io/edit.html?src=src%5Cgame%20objects%5Ccontainer%5Cmatter%20physics%20sprite%20test.js)

This is a BUG?

---

<div class="post-metadata">

**Author:** ![jker](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@jker](https://phaser.discourse.group/u/jker)\
**Post date:** [December 19, 2018, 8:04am UTC](https://phaser.discourse.group/t/container-physics/365/2 "2018-12-19T08:04:43Z")

</div>

Containers can be given a physics body for either Arcade Physics, Impact Physics or Matter Physics. However,  
if Container children are enabled for physics you may get unexpected results, such as offset bodies,  
if the Container itself, or any of its ancestors, is positioned anywhere other than at 0 x 0. Container children  
with physics do not factor in the Container due to the excessive extra calculations needed. Please structure  
your game to work around this.
