This is a simple function that reduces the number of points of a path, thus making the path more clean and natural.
funcPathOptimized(id,gridSize,obstacle);
Demo Windows: https://www.dropbox.com/s/2s3hcn8gdzrjdrx/Demo.exe?dl=0
End User Licence Agreement (EULA).