on(rot + (Math.PI / 180 * 90));

  if (this.lerp >= 1) {
    this.lerp = 0;
    this.step++;

    if (this.step >= this.route.length) {
      this.getRoute(this.route[this.route.length - 1].x, this.route[this.route.length - 1].y);
    } else {
      this.setTarget(this.route[this.step].x, this.route[this.step].y);
    }
  }
}
            </code></pre>
          </section>
          <section>
            <h2>Collision Detection</h2>
            <pre><code>
checkCollision(collider) {
  let x1 = this.object.po