UnityPlatformer.Vector3Extension.Draw C# (CSharp) Method

Draw() static public method

Draw using Debug.DrawRay
static public Draw ( this point, float extend = 0.5f, Color color = null ) : void
point this
extend float
color UnityEngine.Color
return void
    static public void Draw(this Vector3 point, float extend = 0.5f, Color? color = null) {
      Color c = color ?? Color.white;

      Debug.DrawRay(
        point,
        new Vector3(extend, extend, 0),
        c
      );
      Debug.DrawRay(
        point,
        new Vector3(-extend, extend, 0),
        c
      );
      Debug.DrawRay(
        point,
        new Vector3(-extend, -extend, 0),
        c
      );
      Debug.DrawRay(
        point,
        new Vector3(extend, -extend, 0),
        c
      );
    }
    /// <summary>
Vector3Extension