![]() |
Checking for polygon wall
I've been having an issue trying to do this for a while now, and I thought I'd ask here for a hand.
Okay, so I have these 7 variables: PHP Code:
Now, I also have a wall of small polygons all down the left side of my screen, each polygon with 4 coordinates, so it's basically a small wall of rectangles of different lengths. What I would like to do is take each this.char x variable and try to see if it is less than the innermost polygon's x coordinate on each char's y coordinate. (NOTE: These polygons are continually moving down the left side of my screen, so I have little way of knowing the index of each polygon as it is always changing.) Any suggestions? |
You could do something like...
PHP Code:
|
I have some geometry stuff written which I could release, like
However, I don't have a polygon-polygon intersection checker, though I could probably write one if multiple people think it'd be useful. |
Quote:
|
All times are GMT +2. The time now is 06:34 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.