Hi,
It's posible to set the constrain to a poligon area? I've been reading the aengine docs but I don't found any. It's posible in some way?
Salut,
Josep
Constrains to poligon?
Moderators: heatherlaine, kevinmiller, robinmiller, malte
Re: Constrains to poligon?
Not yet, but I Want that too. However this is a tad bit complicated...
I would need to know how this should behave. It should be fairly simple to constrain the location of the dragged object, checking for the boundaries of any given dragged object in an n-sided polygon is not a trivial matter though.
Cheers,
Malte
I would need to know how this should behave. It should be fairly simple to constrain the location of the dragged object, checking for the boundaries of any given dragged object in an n-sided polygon is not a trivial matter though.
Cheers,
Malte
Re: Constrains to poligon?
Hi Malte,
Maybe pointInPoly(x,y,pointlist) will be my friend, so I need to check if the tokens are inside of x zones, and these zones all are polygons.
Better check with pointInPoly or with the intersect?
Salut,
Josep
Maybe pointInPoly(x,y,pointlist) will be my friend, so I need to check if the tokens are inside of x zones, and these zones all are polygons.
Better check with pointInPoly or with the intersect?
Salut,
Josep
Re: Constrains to poligon?
If you want to constrain an object pointInPoly indeed is your friend. If you only want the location costrained this should be pretty straightforward.
All the best,
Malte
All the best,
Malte
Re: Constrains to poligon?
But how I can check all at the same time? I mean, the user move tokens over the board and I need to check where the tokens are,.. what is the technique to control all at same time?
Any tip?
Salut,
Josep
Any tip?
Salut,
Josep