Experimenting with Raycasting


This experiment is based on this video by The Coding Train.

Most of the base code is the same, but I’ve added different ways to move the particle around:

  • Follow mouse: Follows the mouse around.
  • Towards furthest wall: Walks towards the wall that is furthest away.
  • Away from closest wall: Walks in the opposite direction of the closest wall.

© 2020 Guillem Caballero Coll