Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Stratoukos

macrumors member
Original poster
Jul 15, 2008
51
0
Just a simple question.

I was wondering if ther is a built-in way to check if two shapes (drawn with quartz) overlap. The shapes won't necessarily be simple ones like circles.

Thanks.
 

mccannmarc

macrumors 6502
Aug 15, 2008
270
0
Manchester, UK
Just a simple question.

I was wondering if ther is a built-in way to check if two shapes (drawn with quartz) overlap. The shapes won't necessarily be simple ones like circles.

Thanks.

You'll have to implement your own collision detection for this as Quartz only sees the context as a drawing canvas that it can draw to when told. It shouldn't be too hard seeing as you are obviously creating the paths for the shapes in the first place
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.