thief-mission-viewer/project/code/TMV/Utils.cs

12 lines
302 B
C#
Raw Normal View History

2024-07-21 21:13:31 +00:00
using System.Numerics;
namespace KeepersCompound.TMV;
2024-07-21 21:13:31 +00:00
public static class Utils
{
const float InverseScale = 4.0f;
2024-08-25 10:54:21 +00:00
public static Godot.Vector3 ToGodotVec3(this Vector3 vec, bool scale = true)
2024-07-21 21:13:31 +00:00
{
2024-08-25 10:54:21 +00:00
return new Godot.Vector3(vec.Y, vec.Z, vec.X) / (scale ? InverseScale : 1.0f);
2024-07-21 21:13:31 +00:00
}
}