From f69a98e8806acdafc26ed5f7386da7e1a82a3a95 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 25 Aug 2024 11:54:21 +0100 Subject: [PATCH] Let vec3 conversion skip scaling --- project/code/TMV/Utils.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/code/TMV/Utils.cs b/project/code/TMV/Utils.cs index bf5f244..edc2ef4 100644 --- a/project/code/TMV/Utils.cs +++ b/project/code/TMV/Utils.cs @@ -5,8 +5,8 @@ namespace KeepersCompound.TMV; public static class Utils { const float InverseScale = 4.0f; - public static Godot.Vector3 ToGodotVec3(this Vector3 vec) + public static Godot.Vector3 ToGodotVec3(this Vector3 vec, bool scale = true) { - return new Godot.Vector3(vec.Y, vec.Z, vec.X) / InverseScale; + return new Godot.Vector3(vec.Y, vec.Z, vec.X) / (scale ? InverseScale : 1.0f); } } \ No newline at end of file