Class DebugDrawHelpers
- Namespace
- KSP.ModularCamera
- Assembly
- Assembly-CSharp.dll
public static class DebugDrawHelpers
- Inheritance
-
DebugDrawHelpers
- Inherited Members
-
Methods
DrawArrowHandle(Vector3, Quaternion, float)
public static void DrawArrowHandle(Vector3 worldPos, Quaternion worldDir, float length)
Parameters
worldPos Vector3
worldDir Quaternion
length float
DrawAxes(Matrix4x4, Color, float, bool)
public static void DrawAxes(Matrix4x4 localToWorld, Color gridColor = null, float axisLength = 3, bool showXYZ = false)
Parameters
localToWorld Matrix4x4
gridColor Color
axisLength float
showXYZ bool
public static void DrawCameraDriverGizmos(Transform pivot, Transform gimbal, Transform camera, ICameraDriver driver = null, float sphereRadius = 0.6)
Parameters
pivot Transform
gimbal Transform
camera Transform
driver ICameraDriver
sphereRadius float
DrawCameraFrustum(Camera)
public static void DrawCameraFrustum(Camera camera)
Parameters
camera Camera
DrawCameraFrustum(Camera, Color)
public static void DrawCameraFrustum(Camera camera, Color color)
Parameters
camera Camera
color Color
DrawGrid(Matrix4x4, int, int, int)
public static void DrawGrid(Matrix4x4 localToWorld, int width, int height, int subdivs)
Parameters
localToWorld Matrix4x4
width int
height int
subdivs int
DrawLine(Matrix4x4, Vector3, Vector3)
public static void DrawLine(Matrix4x4 localToWorld, Vector3 localStart, Vector3 localEnd)
Parameters
localToWorld Matrix4x4
localStart Vector3
localEnd Vector3
DrawOrientationGrid(Matrix4x4, int, bool)
public static void DrawOrientationGrid(Matrix4x4 localToWorld, int fields, bool showXYZ = false)
Parameters
localToWorld Matrix4x4
fields int
showXYZ bool
DrawOrientationGrid(Matrix4x4, int, Color, bool)
public static void DrawOrientationGrid(Matrix4x4 localToWorld, int fields, Color gridColor, bool showXYZ = false)
Parameters
localToWorld Matrix4x4
fields int
gridColor Color
showXYZ bool
GetDebugColor()
public static Color GetDebugColor()
Returns
- Color
SetDebugColor(Color)
public static void SetDebugColor(Color color)
Parameters
color Color