Working EyeTracking with moving Hitpoint

This commit is contained in:
Thorbjoern
2025-06-02 19:26:42 +02:00
parent a5f152a23f
commit 0cb48fe1a9
17 changed files with 10909 additions and 692 deletions
@@ -42,8 +42,10 @@ public class OVRStickAndRoomscaleMovement : NetworkBehaviour
characterController.center = new Vector3(headLocalPos.x, height / 2f + characterController.skinWidth, headLocalPos.z);
// 4. Stick Movement
Vector2 input = OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick);
Vector3 move = cameraTransform.forward * input.y + cameraTransform.right * input.x;
Vector2 inputPos = OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick);
Vector2 inputRot = OVRInput.Get(OVRInput.Axis2D.SecondaryThumbstick);
Vector3 move = cameraTransform.forward * inputPos.y + cameraTransform.right * inputPos.x;
move.y = 0;
move.Normalize();