UnityEngine.Gizmos.DrawLine C# (CSharp) Method

DrawLine() public static method

public static DrawLine ( Vector3 from, Vector3 to ) : void
from Vector3
to Vector3
return void
		public static void DrawLine(Vector3 from, Vector3 to) { }
		public static void DrawRay(Ray r) { }

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);
    }
All Usage Examples Of UnityEngine.Gizmos::DrawLine