sition.x - 20;
  let x2 = this.object.position.x + 20;
  let y1 = this.object.position.y - 20;
  let y2 = this.object.position.y + 20;
  if ((x1 <= collider.object.position.x) && (collider.object.position.x <= x2) &&
    (y1 <= collider.object.position.y) && (collider.object.position.y <= y2)) {

      document.dispatchEvent(new CustomEvent('ped_dead', {
        detail: {
          x: this.object.position.x,
          y: this.object.position.y,
          rot: this.object.rotation.z
        }
      }));

   