GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

Cannot use the same navmesh file with multiple meshes #695

Open crabmusket opened 10 years ago

crabmusket commented 10 years ago

As noted in this thread, if you point two navmeshes at the same data file, the navmesh geometry of both meshes will end up in the same world location. This is because the geometry is saved in absolute (world) coordinates, rather than in coordinates relative to the navmesh's current location.

crabmusket commented 10 years ago

If there's a way to do this in file saving/loading, that's probably the best solution. If not, then the fix will involve transforming all coordinates to local space when building the navmesh and when performing pathfinding. Painful but worthwhile.