No video

WebXR Advanced Interaction in Unity 3D

  Рет қаралды 1,303

MrJocyf

MrJocyf

Күн бұрын

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.

Пікірлер: 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
How to use WebXR with Unity - January 2024 Edition
28:11
Oren De-Panther
Рет қаралды 7 М.
WebXR Export for Unity - 2020-11-01 Update
13:55
Oren De-Panther
Рет қаралды 13 М.
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 40 МЛН
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 69 МЛН
Programming a VR Forklift Simulation in Unity - How it's Done
4:34
VR Gaze Interaction in Unity
21:43
Tomaz Saraiva
Рет қаралды 10 М.
Exporting to WebXR using VRTK in Unity3D
3:10
CubicBrain
Рет қаралды 6 М.
XR Interaction Toolkit in WebXR on Quest 3
1:01
Caleb Cram
Рет қаралды 411
WebGL   Full window
35:58
Alien TechLAB
Рет қаралды 12 М.
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 40 МЛН