code: private void assignObjectId(int dtx, int dty)
      {
          final int tw = transformable.getWidth() / map.getTileWidth();
          final int th = transformable.getHeight() / map.getTileHeight();
  
          for (int tx = dtx; tx < dtx + tw; tx++)
          {
              for (int ty = dty; ty < dty + th; ty++)
              {
                  mapPath.addObjectId(tx, ty, id);
              }
          }
      }
docs: Assign the map object id of the pathfindable.
  
  @param dtx The tile horizontal destination.
  @param dty The tile vertical destination.