Basic functions are added to the repo for BJS and VR beginner like me.
-
import mesh
-
enable teleport
-
Grab objects
-
GUI text (TBA)
-
Scroll (TBA)
-
Scene change (TBA)
Set these code in your server or use node.js.
eg.
$ npm init -y
$ npm install --save-dev express
$ node server.js
Access the URL
http://localhost:8001
Activate "TeleportCheck.js" in index.html.
<script src="./js/TeleportCheck.js"></script>
Hold up on joystick of quest controller. Then teleport circle is showed. Release the joystick, you can teleport.
Registered mesh by enabledTeleportation is the two red square.
See : https://doc.babylonjs.com/how_to/webvr_helper
Activate "GrabObjectsCheck.js" in index.html.
<script src="./js/GrabObjectsCheck.js"></script>
Pressing main trigger of left quest controller when ray from the controller hits cube objects.
See the movie.
The code is based on the playground sample. Thanks for great code!
https://www.babylonjs-playground.com/#5P51YL#5
Thanks for great models.