swordlegend / recastnavigation

Automatically exported from code.google.com/p/recastnavigation
zlib License
0 stars 0 forks source link

use 3D distance to animate off-mesh connections traversing #208

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
in DetourCrowd.cpp:1133 dtVdist2D() is used to compute the time needed to 
travel thru the off-mesh connection. I have a problem when using off-mesh 
connections to represent a ladder: as it is vertical it has a 2D distance of 0.

solution: using dtVdist() instead.

As a side note I attach a patch enabling a custom speed ratio per off-mesh 
connection.

Original issue reported on code.google.com by pre...@cervval.com on 25 Jun 2012 at 3:47

Attachments: