Skip to content

Matt2111/Ray-Casting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray-Casting

"Rays linesweep.py" demonstrates ray casting using the line-sweep algorithm. Rays are cast from the mouse point and can be seen by pressing the left mouse button. It also includes a vertex detection algorithm which massively boosts resolution without a big performance hit like increasing the base ray count, you can toggle this by clicking the spacebar.

Example 1, this has 45 rays with vertex detection on. Alt text

Example 2, this has 45 rays with vertex detection off. Alt text

Example 3, this has 45 rays with vertex detection off and visible rays. (red = missed ray, green = collided ray, blue = new vertex detection ray) Alt text

Example 4, this had 45 rays with vertex detection and visible rays. (red = missed ray, green = collided ray, blue = new vertex detection ray) Alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages