Hi all,
I just tring polygon addon, and managed to create a polygon shape by click-drag mouse.
But how to check if an object is inside a polygon shape.
Thanks.
Develop games in your browser. Powerful, performant & highly capable.
Hi ramose73 Would overlapping suffice or does it need to be fully contained?
Hi hundredfold, it needs to be fully contained.
What shape the object would it be? Is it any shape of polygon inside another or square?
Katala,
the polygon should be in freeform shape.
Sorry for not detailing my goal. I attach the concept of game I need to make.
User draw line around stars, then stars disappear. The line should be closed.
Here every star has 10 imagepoints that need to overlap the drawn polygon.
It might be enough to just check if the center of the star is in the polygon.
I made a capx a while ago that did that.
[quote:3dzdp7lx]It might be enough to just check if the center of the star is in the polygon.
I also thought it should be enough.
Thank you Katala and R0J0hound !
That all works for me