Consider StaticBody and NavMesh position when converting to a MeshLibrary
Would have added mesh transform, but realized that will cause problems when moving the mesh around the scene for visualization purposes. Closes #11722
This commit is contained in:
parent
22ee7ba4f0
commit
1a397a7878
4 changed files with 34 additions and 2 deletions
|
|
@ -517,7 +517,7 @@ bool GridMap::_octant_update(const OctantKey &p_key) {
|
|||
Ref<NavigationMesh> navmesh = mesh_library->get_item_navmesh(c.item);
|
||||
if (navmesh.is_valid()) {
|
||||
Octant::NavMesh nm;
|
||||
nm.xform = xform;
|
||||
nm.xform = xform * mesh_library->get_item_navmesh_transform(c.item);
|
||||
|
||||
if (navigation) {
|
||||
nm.id = navigation->navmesh_add(navmesh, xform, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue