public static bool IsFullyInsideVoxel(IMyEntity entity, MyPlanet planet) { MatrixD transform = entity.WorldMatrix; return(planet.AreAllAabbCornersInside(ref transform, (BoundingBoxD)entity.LocalAABB)); }