ScratchData LogoScratchData
Back to ChromeCat_test's profile

Circle-Polygon collision test

CHChromeCat_test•Created December 23, 2022
Circle-Polygon collision test
36
30
436 views
View on Scratch

Instructions

It's a christmas miracle! ... an efficient circle-polygon collision test! - this also gives you the closest point on the polygon!

Description

Note that this only work for convex polygons but if you want it to work for concave polygons, all you need to do is swap out the PtInConvexPoly test for the PtInPolyTest

Project Details

Project ID780730496
CreatedDecember 23, 2022
Last ModifiedMay 17, 2023
SharedDecember 23, 2022
Visibilityvisible
CommentsAllowed