void Start()
        {
            VVRInput.Init();

            buttonsCallback = ButtonsCallback;
            nuitrack.PublicNativeImporter.nuitrack_OnButtonUpdate(buttonsCallback);

            controllerCalibrationCallback = ControllerCalibrationCallback;
            nuitrack.PublicNativeImporter.nuitrack_OnControllerCalibration(controllerCalibrationCallback);
            DoBLEScan(Quaternion.identity);
        }
示例#2
0
        private void Update()
        {
            Vector2 stickPos = VVRInput.GetStickPos();

            stick.localEulerAngles = new Vector3(stickPos.x * maxAngleStick, 0, baseZStick + stickPos.y * maxAngleStick);
        }