コード例 #1
0
ファイル: Gizmo.cs プロジェクト: MaxPlay/GameEngine
 /// <summary>
 /// Draws a ray using worldcoordinates.
 /// </summary>
 /// <param name="ray">The ray that needs to be drawn.</param>
 /// <param name="color">Color of the ray.</param>
 public static void DrawRay(Ray2D ray, Color color)
 {
     DrawLine(ray.Position, ray.Position + ray.Direction, color);
 }
コード例 #2
0
ファイル: Gizmo.cs プロジェクト: MaxPlay/GameEngine
 /// <summary>
 /// Draws a ray using worldcoordinates.
 /// </summary>
 /// <param name="ray">The ray that needs to be drawn.</param>
 public static void DrawRay(Ray2D ray)
 {
     DrawLine(ray.Position, ray.Position + ray.Direction, Color.White);
 }