Simple Raycasting (12-minute video)

b2

In this short video you will get to understand how you can use rays and raycasting for your games so that you can detect objects ahead of you before you collide with them.


We will look at:

  • Creating a ray.
  • Casting a ray from the screen (i.e., in First-Person mode).
  • Detecting objects in front of the player
  • Creating a ray for debugging purposes

Related Articles: