CubeMesh - Fix 'GetTransform' function

This commit is contained in:
miku-666
2024-11-06 13:35:59 +01:00
parent 7fa3fe8ab5
commit 6d9319d17c

View File

@@ -77,10 +77,7 @@ namespace PckStudio.Rendering
public Cube GetCube() => _cube;
public override Matrix4 GetTransform()
{
return Matrix4.CreateScale(_cube.Size) * Matrix4.CreateTranslation(_cube.Position);
}
public override Matrix4 GetTransform() => _cube.GetBoundingBox().GetTransform();
public override BoundingBox GetBounds(Matrix4 transform)
{