UnityPlatformer.Vector3Extension.DrawZAngle C# (CSharp) Method

DrawZAngle() static public method

Draw a Vector3 like if it was an angle
static public DrawZAngle ( this point, float degreeAngle = 0.5f, Color color = null ) : void
point this
degreeAngle float
color UnityEngine.Color
return void
    static public void DrawZAngle(this Vector3 point, float degreeAngle = 0.5f, Color? color = null) {
      Debug.DrawRay(point, new Vector2(
        Mathf.Cos(degreeAngle * Mathf.Deg2Rad) * 3,
        Mathf.Sin(degreeAngle * Mathf.Deg2Rad) * 3
      ));
    }
  }
Vector3Extension