Let vec3 conversion skip scaling

This commit is contained in:
Jarrod Doyle 2024-08-25 11:54:21 +01:00
parent 505adf5d44
commit f69a98e880
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}