GML Is place_meeting() just a rects overlap?

Discussion in 'Programming' started by Amon, Sep 13, 2019.

  1. Amon

    Amon Member

    Joined:
    Sep 13, 2016
    Posts:
    259
    Under the hood of place_meeting() would we simply find for the collision a standard rectsoverlap type algorithm that checks collision between the collision mask of each objects sprite?
     
  2. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    4,470
    It's only that when both the source's mask and the target's mask are set to rectangular. This blog article covers what happens when the mask is set to precise, and the ellipse and diamond mask shapes also have their own means of determining collision with themselves and with other types.
     
    Amon likes this.
  3. Amon

    Amon Member

    Joined:
    Sep 13, 2016
    Posts:
    259
    Thank you!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice