}
});
}
public CellTransform getWorldTransform(CellMO cell, CellTransform result) {
SpatialCellImpl spatial = (SpatialCellImpl ) universe.getSpatialCell(cell.getCellID());
// issue #727: if the cell has not yet been added (because the job to
// add it is scheduled but hasn't run yet), we should gracefully return
// null here
if (spatial == null) {
return null;
}
CellTransform ret;
spatial.acquireRootReadLock();
if (spatial.getWorldTransform()==null)
ret = null;
else
ret = spatial.getWorldTransform().clone(result);
spatial.releaseRootReadLock();
return ret;
}