void Start() { VVRInput.Init(); buttonsCallback = ButtonsCallback; nuitrack.PublicNativeImporter.nuitrack_OnButtonUpdate(buttonsCallback); controllerCalibrationCallback = ControllerCalibrationCallback; nuitrack.PublicNativeImporter.nuitrack_OnControllerCalibration(controllerCalibrationCallback); DoBLEScan(Quaternion.identity); }
private void Update() { Vector2 stickPos = VVRInput.GetStickPos(); stick.localEulerAngles = new Vector3(stickPos.x * maxAngleStick, 0, baseZStick + stickPos.y * maxAngleStick); }