Working EyeTracking with moving Hitpoint
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user