Circle in circle detection

Discussion in 'How Can I...?' started by Dud, May 21, 2016.

  1. Dud

    Dud Boxer

    Joined:
    May 21, 2016
    Messages:
    4
    Likes Received:
    0
    Hi all,

    New BB user here (bought it yesterday) so I'm just ploughing through the tutorials right now. I had a certain game idea in mind and I would like to detect when one circle is inside another. I can see that BB is constrained in certain ways and that people sometimes need to think outside the box to get the effect they want so I was wondering is something like circle in circle detection possible? I don't just need to detect when circles collide - one circle has to be completely inside another. Any suggested ideas would be welcome :)
     
  2. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    Are one of the circles your character?
     
  3. Dud

    Dud Boxer

    Joined:
    May 21, 2016
    Messages:
    4
    Likes Received:
    0
    Yes one of my circles would be the character and I guess the other circle would just be an object. I want to slide the character and try to determine if it is fully inside another circle when it comes to rest.
     

Share This Page