fix(battle-engine): Quaternion.identity w=1 to match Unity semantics
This commit is contained in:
@@ -13,7 +13,7 @@ namespace UnityEngine
|
|||||||
public struct Quaternion
|
public struct Quaternion
|
||||||
{
|
{
|
||||||
public float x, y, z, w;
|
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 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; } }
|
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; } }
|
||||||
|
|||||||
Reference in New Issue
Block a user