Overlapping

Discussion in 'iOS Programming' started by Stratoukos, Mar 19, 2009.

  1. Stratoukos macrumors member

    Joined:
    Jul 15, 2008
    #1
    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.
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    No: there is no built-in collision detection/overlap detection...
     
  3. mccannmarc macrumors 6502

    mccannmarc

    Joined:
    Aug 15, 2008
    Location:
    Manchester, UK
    #3
    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
     

Share This Page