UnityEngine.Gizmos.DrawWireSphere C# (CSharp) Method

DrawWireSphere() public static method

public static DrawWireSphere ( Vector3 center, float radius ) : void
center Vector3
radius float
return void
		public static void DrawWireSphere(Vector3 center, float radius) { }
	}

Usage Example

コード例 #1
0
    private void DrawPendulum()
    {
        //Draw Pendulum
        float deg         = sine * maxDeg;
        float rad         = M.Deg2Rad * deg;
        V3    pundulumPos = new V3(M.Sin(rad * timeScale), -M.Cos(rad * timeScale), 0);

        G.DrawWireSphere(pundulumPos + V3.left * 3, .2f);
        G.DrawLine(V3.zero + V3.left * 3, pundulumPos + V3.left * 3);
    }