Skip to content

dvdmarchetti/js-raycasting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raycasting

Split screen raycasting algorithm implementation with P5.js. Left half of the screen visualize a 2D-grid, right half renders the visible grid portion in three dimensions. Use W, A, S, D to turn and move around, the mouse wheel to adjust the field of view or click on any grid tile to toggle obstacles at any time.

Raycasting execution example

Live Demo

You can try out yourself the raycasting implementation here.