Тёмный
No video :(

WebXR Advanced Interaction in Unity 3D 

MrJocyf
Подписаться 4,1 тыс.
Просмотров 1,3 тыс.
50% 1

Advanced movement and interaction using the Mozilla XR PLugin for Unity.
github.com/Moz...
It has thumbstick movement & rotation, raycast interaction and Teleportation.
The entire project is available here: github.com/Joc...
You'll get movement, Interaction and Teleport based on the original webXR exporter from mozilla.
There is a Readme file inside the project if you need more info.

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@yotamshacham6500
@yotamshacham6500 3 года назад
Great work! I too would be interested in a public example project :)
@MrJocyf
@MrJocyf 3 года назад
OK, I'll try to do it.
@MrJocyf
@MrJocyf 3 года назад
The project has been uploaded here: github.com/Jocyf/WebXR-Exporter-Advanced
@yotamshacham6500
@yotamshacham6500 3 года назад
@@MrJocyf Thanks! I'll check it out.
@Chiuhao0880
@Chiuhao0880 2 года назад
good work ! your so good! btw now you know how interact with UI?
@MrJocyf
@MrJocyf 2 года назад
You have to add to the canvas some raycaster script. There is always some kind of VR Raycaster besides the usual Unity's physics Raycaster. After that the rest is exactly the same as usual (enable "Raycast Target" and listen to OnClick or to Pointer Evenets using a EventsTrigger component).
@Chiuhao0880
@Chiuhao0880 2 года назад
@@MrJocyf thanks you reply i will try it thank you ture
@rabbitskywalk3r
@rabbitskywalk3r 3 года назад
Very nice.. Could you provide an example project on github or some documenation how exactly you implemented the teleport?
@rabbitskywalk3r
@rabbitskywalk3r 3 года назад
It alsow would be great if you could test if the input works after building to web ;) thank you very much
@MrJocyf
@MrJocyf 3 года назад
@@rabbitskywalk3r : Yeah, I've tested on Firefox and it works. The problem is not the teleport code (that's simple to achieve). The real problem is get the sticks working, I had to modify the original controller code to be able to read them, that's really the tricky part (at least for me).
@rabbitskywalk3r
@rabbitskywalk3r 3 года назад
@@MrJocyf thank you for replying to my question. yes, the sticks are where I am stuck right now. i did some research if the XR interaction toolkit could be implemented because this would make it probably easier. in this and found this fork that claims it solved it, but I have not fully figured out how to setup the project correctly github.com/De-Panther/unity-webxr-export/
@rabbitskywalk3r
@rabbitskywalk3r 3 года назад
@@MrJocyf I read the documention that the HTML5 Gamepad Tester should help to figure out the right input of the controllers. but i don't know how to setup the sticks in the Unity Input Manager. Maybe you can give me a hint how you got the Joysticks working with the Input Manager or did you do something else?
@MrJocyf
@MrJocyf 3 года назад
@@rabbitskywalk3r : For the sticks in the Input Manager you just configure them as any other gamepad stick, is the same. You read them as ussually using Input class (only when in the Unity editor). As for the sticks in the browser, the exporter gives you all the data in an array, but there isn not a funtion in the controller script to read them. You can read the buttons status (trigger & grab button) but you have to create a new function to be able to read the sticks from the internal given array.
@lovesterposey5109
@lovesterposey5109 3 года назад
Hey, great project. I am trying to interact with UI buttons, but cant press my buttons. I tried to add the same components as the game objects, but it didn't work. Has anyone ran into this issue??
@MrJocyf
@MrJocyf 3 года назад
I haven't ried to make an resposive UI with the webXR pakage. You can ask in the Unity channel of the WebXR discor server... webxr.nl
Далее
Starman🫡
00:18
Просмотров 4,3 млн
AngryBots  (Unity 2022 LTS). ¡Disponible!
13:07
Flipper Zero Trolling RESTAURANT PAGES!
13:27
Просмотров 6 тыс.
BEST gaming PC build in September 2024!!!!
34:45
Просмотров 10 тыс.