0 votes
in 中文区(Chinese) by (120 points)

unity怎么样才能获取pico neo3手柄挥动的方向,这样才能切割方块

1 Answer

0 votes
by (1.9k points)

如果使用Unity的XR Tookit可以使用

        float devicePosition = 0;
        InputDevices.GetDeviceAtXRNode(XRNode.LeftHand).TryGetFeatureValue(CommonUsages.devicePosition, out devicePosition);
        InputDevices.GetDeviceAtXRNode(XRNode.RightHand).TryGetFeatureValue(CommonUsages.devicePosition, out devicePosition)

https://github.com/Unity-Technologies/XR-Interaction-Toolkit-Examples
unity官方的xrdemo,里面有关于手柄方向的,可以参考

by (120 points)

没有用啊,我还是获取不到,而且官方的demo里面也没有

...