fix(battle-engine): Quaternion.identity w=1 to match Unity semantics

This commit is contained in:
gamer147
2026-06-05 16:49:02 -04:00
parent 550cedbf1e
commit 23a6596558

View File

@@ -13,7 +13,7 @@ namespace UnityEngine
public struct Quaternion
{
public float x, y, z, w;
public static Quaternion identity => new Quaternion();
public static Quaternion identity => new Quaternion { x=0, y=0, z=0, w=1 };
public static Quaternion Euler(float x, float y, float z) => new Quaternion();
}
public struct Color { public float r, g, b, a; public Color(float r,float g,float b,float a){ this.r=r; this.g=g; this.b=b; this.a=a; } }