
10-20-2009, 11:16 PM
|
N-Pulse Assistant Manager
|
 |
Join Date: Mar 2005
Posts: 2,180
|
|
I edited your script so that use takes an offset x/y and width/height for wall checking.
The function parameters now goes as this:
findPath(cx, cy, offSet, blockSize, tx, ty, cutCorners, fullPath)
Where offSet and blockSize are two-member arrays.
It's not perfect, but it does work pretty well. |
|
|