replit / kaboom

💥 JavaScript game library
https://kaboomjs.com
MIT License
2.61k stars 226 forks source link

high level raycasting functions #853

Open mflerackers opened 1 month ago

mflerackers commented 1 month ago

High level raycast method to raycast objects (note that a circle is raycasted as a square since it returns a square shape). Level has a raycast method using a voxel renderer for the tiles. Some fixes for ellipse. 3 examples.