whoops, I missed that part. It would still be difficult and messy, though :rolleyes:Quote:
Originally posted by Hunter2
How so? I DID include the "if moving up and right" part, you realize...
Ummm... to solve the problem with the angle to one of the outside walls being greater, you could test to find the shape with the closest midpoint (combining my two methods) and then find the greatest angle on that shape. Or you could represent the outside wall with smaller line segments. Or, if you're moving in small enough steps, it won't be a problem when the point gets right up to the wall, because that angle will be almost 180 degrees.