Derniers changements
Restauration de changements perdus avant soutenance
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
public static class BuildConstants
|
||||
{
|
||||
public const string LocalIP = "10.42.133.242";
|
||||
public const string LocalIP = "10.98.116.11";
|
||||
}
|
||||
@@ -9,11 +9,19 @@ public class HUDMain : MonoBehaviour
|
||||
|
||||
void Update()
|
||||
{
|
||||
Quaternion rotation_offset = Quaternion.Euler(45, 0, 0);
|
||||
m_window.position = controller.TransformPoint(new Vector3(0f, 0.1f, 0f));
|
||||
m_window.rotation = controller.rotation * rotation_offset;
|
||||
|
||||
InputDevice mainGauche = InputDevices.GetDeviceAtXRNode(XRNode.LeftHand);
|
||||
if (mainGauche.TryGetFeatureValue(CommonUsages.isTracked, out bool tracked) && tracked)
|
||||
{
|
||||
Quaternion rotation_offset = Quaternion.Euler(45, 0, 0);
|
||||
m_window.position = controller.TransformPoint(new Vector3(0f, 0.1f, 0f));
|
||||
m_window.rotation = controller.rotation * rotation_offset;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!mainGauche.isValid)
|
||||
return;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user