javier.serrano Posted October 3, 2016 Posted October 3, 2016 Hi, I was making some simple paths with NavigationSectors and one strange result appeared. At the intersection between a Sector with size (8,1,1) and another with size (3,3,8), when the path should start going 'up' at the intersection point it makes an extra point at the bottom of the second Sector and the it solves the route perfectly. I just placed the sectors with the editor and wrote a simple code that displays the path, so i can't be an issue when coding. Is something I have missed when designing? Here is the code I wrote: PathRoute route; Vec3 p0 = Vec3(0.059f, -5.018f, 8.0f); Vec3 p1 = Vec3(10.361f, -1.577f, 0.0f); int init() { engine.world.updateSpatial(); route = new PathRoute(0); return 1; } int update() { route.create2D(p0, p1); if (route.isReached()) route.renderVisualizer(vec4_one); else log.message("PathRoute failed\n"); return 1; } I have also attached two images that show the issue. Thanks in advance.
silent Posted October 4, 2016 Posted October 4, 2016 Hi Javier, Have you tried to increase quality of the pathfinding calculations? Also, small test scene will be very helpful in debugging. Could you please upload test world and sample code for reproduction?Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts