From 7ddc0019db27b5a9377342433b3ef0b888bc9b7f Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Thu, 19 Oct 2023 16:16:40 +0800 Subject: *misc --- Docs/TAB_DebugRigidBody.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Docs/TAB_DebugRigidBody.txt') diff --git a/Docs/TAB_DebugRigidBody.txt b/Docs/TAB_DebugRigidBody.txt index 095c105..e7a7026 100644 --- a/Docs/TAB_DebugRigidBody.txt +++ b/Docs/TAB_DebugRigidBody.txt @@ -11,6 +11,8 @@ public class DebugRigidBody : MonoBehaviour } public EMode mode = EMode.Axis; + public Color color = Color.white; + // When added to an object, draws colored rays from the // transform position. public int lineCount = 100; @@ -88,7 +90,7 @@ public class DebugRigidBody : MonoBehaviour GL.Begin(GL.QUADS); - GL.Color(Color.white); + GL.Color(color); GL.Vertex3(len, len, -len); GL.Vertex3(-len, len, -len); -- cgit v1.1-26-g67d0