void Update() { A.pressed = OculusTouchInput.GetRightAPress(); A.touch = OculusTouchInput.GetRightATouch(); B.pressed = OculusTouchInput.GetRightBPress(); B.touch = OculusTouchInput.GetRightBTouch(); leftThumbstick.x = OculusTouchInput.GetLeftThumbstickHorizontal(); leftThumbstick.y = OculusTouchInput.GetLeftThumbstickVertical(); rightThumbstick.x = OculusTouchInput.GetRightThumbstickHorizontal(); rightThumbstick.y = OculusTouchInput.GetRightThumbstickVertical(); leftTrigger = OculusTouchInput.GetLeftIndex(); rightTrigger = OculusTouchInput.GetRightIndex(); }
// Update is called once per frame void Update() { car.steerRight(OculusTouchInput.GetLeftThumbstickHorizontal() * rotateAmount); car.GoForward(OculusTouchInput.GetLeftIndex() * tranSpeed); }
// Update is called once per frame void Update() { plane.Forward(OculusTouchInput.GetLeftIndex() * thrust); plane.Roll(OculusTouchInput.GetLeftThumbstickVertical() * roll); plane.Pitch(OculusTouchInput.GetLeftThumbstickHorizontal() * pitch); }