2024-07-21 21:13:31 +00:00
|
|
|
using System.Numerics;
|
|
|
|
|
|
|
|
namespace KeepersCompound.LGS;
|
|
|
|
|
|
|
|
|
|
|
|
public static class Utils
|
|
|
|
{
|
2024-08-01 17:29:10 +00:00
|
|
|
const float InverseScale = 4.0f;
|
|
|
|
public static Godot.Vector3 ToGodotVec3(this Vector3 vec)
|
2024-07-21 21:13:31 +00:00
|
|
|
{
|
2024-08-01 17:29:10 +00:00
|
|
|
return new Godot.Vector3(vec.Y, vec.Z, vec.X) / InverseScale;
|
2024-07-21 21:13:31 +00:00
|
|
|
}
|
|
|
|
}
|