Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Coding Challenge - 2D Raycasting

Coding Train via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Implement a basic ray casting engine with line segment "surfaces" and vector "rays" in this 36-minute video tutorial. Learn to simulate a light source casting shadows in a 2D canvas using p5.js. Explore concepts such as creating a Ray class, casting rays, finding intersections, and adding collision detection. Discover how to work with multiple boundaries and incorporate Perlin noise for movement. Gain insights into potential improvements and access additional resources on 2D visibility, line-line intersection, and related coding challenges. Follow along with the provided p5.js Web Editor sketch and delve into the world of 2D ray casting.

Syllabus

Introduction.
Coding Starts.
Creating a Ray Class.
Casting Rays And Finding Intersections.
Casting Multiple Rays.
Adding Collision Detection For Every Ray.
Multiple Boundaries.
Moving With Perlin Noise.
Suggestions For Improvements.

Taught by

The Coding Train

Reviews

Start your review of Coding Challenge - 2D Raycasting

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.