Пример #1
0
        public static bool IsFullyInsideVoxel(IMyEntity entity, MyPlanet planet)
        {
            MatrixD transform = entity.WorldMatrix;

            return(planet.AreAllAabbCornersInside(ref transform, (BoundingBoxD)entity.LocalAABB));
        }