How do I know if one object is within another object?
Posted: Fri Oct 24, 2014 5:33 am
Good day y'all!
I have a question...
How do I know if one object is within another object? (that they fully overlap)
I know "intersect", but it only tells when 2 objects collide, right?
Also, "within" only tells if a point is within an object, not object within the object.
Can't seem to find what to use.
And another question...
How do I tell if one object directly beside another object? By object, I mean controls with irregular shape. You can think of like I am trying to assemble pieces of something and I like to know if 2 pieces are connected. By connected I mean to say there shouldn't be any hollow/empty pixel between the two.
Thank you so much!
Any insights will be greatly appreciated.
Regards,
Genie
I have a question...
How do I know if one object is within another object? (that they fully overlap)
I know "intersect", but it only tells when 2 objects collide, right?
Also, "within" only tells if a point is within an object, not object within the object.
Can't seem to find what to use.
And another question...
How do I tell if one object directly beside another object? By object, I mean controls with irregular shape. You can think of like I am trying to assemble pieces of something and I like to know if 2 pieces are connected. By connected I mean to say there shouldn't be any hollow/empty pixel between the two.
Thank you so much!
Any insights will be greatly appreciated.
Regards,
Genie