mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-04 02:44:32 +00:00
CubeMesh - Fix 'GetTransform' function
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user