void OnGUI() { { Color blue = Color.blue; blue.a = 0.25f; Matrix4x4 mat = transform.localToWorldMatrix * Matrix4x4.Scale(new Vector3(1.0f, 1.0f, 0.0f)); matLine.SetPass(0); MPGPPlayer.DrawWireCube(mat, blue); } }
void OnGUI() { Color blue = Color.blue; blue.a = 0.25f; Matrix4x4 mat = forceMatrix * Matrix4x4.Scale(new Vector3(0.0f, 1.0f, 1.0f)); matLine.SetPass(0); MPGPPlayer.DrawWireCube(mat, blue); }