From 6589c220374bf33942bf57118e4c65e69d54f338 Mon Sep 17 00:00:00 2001 From: spatialfree Date: Sun, 4 Feb 2024 01:33:23 -0500 Subject: [PATCH] --HUD --- sk_demo/src/Mono.cs | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/sk_demo/src/Mono.cs b/sk_demo/src/Mono.cs index 4d02a6d..5e3c9a2 100644 --- a/sk_demo/src/Mono.cs +++ b/sk_demo/src/Mono.cs @@ -259,36 +259,6 @@ public class Mono { monoNet.send = true; } - // HUD - // void Text.Add(string text, Matrix transform, TextAlign position = TextAlign.Center, TextAlign align = TextAlign.Center, float offX = 0, float offY = 0, float offZ = 0) - Text.Add( - characters[last_xi].character, - Matrix.TRS( - rig.hand_1.palm.position + V.XYZ(0, 0.1f, 0), - rig.head_ori * Quat.FromAngles(0, 180, 0), - 2f - ), - TextAlign.Center, - TextAlign.Center, - 0, 0, 0 - ); - // show the braille dots(spheres) above the text - for (int i = 0; i < 6; i++) { - float spacing = 0.015f; - float x_offset = (i % 2) * spacing; - float y_offset = (i / 2) * -spacing; - if (characters[last_xi].dots[i] == 1) { - Mesh.Sphere.Draw( - mat.mono, - Matrix.TS( - rig.hand_1.palm.position + V.XYZ(x_offset, y_offset, 0) * rig.head_ori, - 0.01f - ), - Color.White - ); - } - } - // keyboard Matrix keyboard_m4 = Matrix.TRS( rig.head_pos + V.XYZ(0, -0.1f, -0.2f),