--HUD
This commit is contained in:
parent
e9a5e88a67
commit
6589c22037
1 changed files with 0 additions and 30 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue