mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-08 21:18:55 +00:00
CubeMeshCollection - Implemented 'GetBounds'
This commit is contained in:
@@ -169,7 +169,11 @@ namespace PckStudio.Rendering
|
||||
|
||||
public override BoundingBox GetBounds(Matrix4 transform)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
IEnumerable<BoundingBox> boundingBoxes = cubes
|
||||
.Where(c => c.Visible)
|
||||
.Select(c => c.GetBounds(Transform * transform))
|
||||
.DefaultIfEmpty();
|
||||
return BoundingBox.GetEnclosingBoundingBox(boundingBoxes);
|
||||
}
|
||||
|
||||
internal Vector3 GetFaceCenter(int index, Cube.Face face)
|
||||
|
||||
Reference in New Issue
Block a user