title: Phaser 3 Collider clipping
body: <p>So i am kinda new to Phaser and i find it prety hard to find any good information on this topic. My Problem is that i can push my colliders in to each other (see gif). </p>
  
  <p><a href="https://imgur.com/KI1RJQA.gif" rel="nofollow noreferrer">https://imgur.com/KI1RJQA.gif</a> "What i mean"</p>
  
  <p>So right now i have a system where i keep track of the last valid position of the player and if they collide i set them back to it. But i was thinking that there has to be a better way of doing it so thats why i came here.</p>
  
  <pre><code>let TopWall = this.add.tileSprite(400, 100, 1800, 100, 'wall');
  this.physics.add.existing(TopWall);
  
  this.walls = this.add.group();
  this.walls.addMultiple([TopWall]);
  
  this.walls.children.iterate(function(wall) {
              wall.body.immovable = true;
          })
  
  this.player = this.physics.add.sprite(300, 300, 'idel', 0);
  
  this.physics.add.collider(this.player, this.walls,(player, wall) =&gt;  {
              // this.player.x = this.player.lastPos.x;
              // this.player.y = this.player.lastPos.y;
  })
  </code></pre>
  
  <p>i use the arcade physics btw.</p>