From 28c3adff4d9580a09c2ff0ff82cec6c5f6de12c0 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Wed, 15 Jan 2020 22:59:44 +0100 Subject: [PATCH] Update and add rotation params to test cmd --- GCMC/CubePlacerEngine.cs | 6 ++++-- GCMC/GCMC.csproj | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/GCMC/CubePlacerEngine.cs b/GCMC/CubePlacerEngine.cs index 5a9cf0f..1c524df 100644 --- a/GCMC/CubePlacerEngine.cs +++ b/GCMC/CubePlacerEngine.cs @@ -76,7 +76,7 @@ namespace GCMC } Placement.PlaceBlock(id, (blocks.Start + blocks.End) / 2, color: color, darkness: darkness, - scale: (blocks.End - blocks.Start + 1) * 5, rotation: quaternion.identity); + scale: (blocks.End - blocks.Start + 1) * 5, rotation: float3.zero); C++; } @@ -103,8 +103,10 @@ namespace GCMC float scaleY = float.Parse(s[8]); float scaleZ = float.Parse(s[9]); float rotX = float.Parse(s[10]); + float rotY = float.Parse(s[11]); + float rotZ = float.Parse(s[12]); uint playerId = 0; - Placement.PlaceBlock((BlockIDs) block, new float3(x, y, z), new quaternion(rotX, 0, 0, 1), + Placement.PlaceBlock((BlockIDs) block, new float3(x, y, z), new float3(rotX, rotY, rotZ), (BlockColors) color, darkness, scale, new float3(scaleX, scaleY, scaleZ), playerId); } catch (Exception e) diff --git a/GCMC/GCMC.csproj b/GCMC/GCMC.csproj index 9a4c82d..b161140 100644 --- a/GCMC/GCMC.csproj +++ b/GCMC/GCMC.csproj @@ -24,6 +24,9 @@ ..\..\GamecraftModdingAPI\GamecraftModdingAPI\bin\Debug\net48\GamecraftModdingAPI.dll + + ..\..\GamecraftModdingAPI\GamecraftModdingAPI\bin\Debug\net48\GamecraftModdingAPI.dll + IllusionPlugin.dll