diff options
author | chai <215380520@qq.com> | 2023-10-19 16:16:40 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-10-19 16:16:40 +0800 |
commit | 7ddc0019db27b5a9377342433b3ef0b888bc9b7f (patch) | |
tree | a4006077fe97a8119f6b7dbcb005fa8fea7b407c /Docs/TAB_DebugRigidBody.txt | |
parent | f4a633ea5125025216cc1d260d5dbac66f6ed194 (diff) |
*misc
Diffstat (limited to 'Docs/TAB_DebugRigidBody.txt')
-rw-r--r-- | Docs/TAB_DebugRigidBody.txt | 4 |
1 files changed, 3 insertions, 1 deletions
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); |