ScratchData LogoScratchData
Back to MegaApuTurkUltra's profile

Circle-Polygon Intersection Detector

MEMegaApuTurkUltra•Created November 17, 2014
Circle-Polygon Intersection Detector
4
2
143 views
View on Scratch

Instructions

A test for the physics engine which will eventually be in my upcoming game. Enter whatever points you want into the list, then use the mouse to move the circle.

Description

Right now it's effectively a point/polygon collision detector; it only checks for instances where the center of the circle is completely contained in the circle. I still have to implement another check for if the center of the circle is not contained. This also fails on some edge cases, I need to work them out 1) If the circle y exactly matches a point y 2) With a completely horizontal line 3) With a completely vertical line

Project Details

Project ID34716742
CreatedNovember 17, 2014
Last ModifiedNovember 17, 2014
SharedNovember 17, 2014
Visibilityvisible
CommentsAllowed