Copie depuis Unity VCS vers GitHub

This commit is contained in:
Denis L.
2025-12-10 18:51:40 +01:00
parent 5cfd9de581
commit 7383621db3
902 changed files with 588195 additions and 0 deletions

19
Assets/Scripts/HUDMain.cs Normal file
View File

@@ -0,0 +1,19 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR;
public class HUDMain : MonoBehaviour
{
[SerializeField] private RectTransform m_window;
[SerializeField] private Transform controller;
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);
}
}