Teleport module for WebVR and THREE.js projects.
You can download the project and view the examples.
git clone https://github.com/Sean-Bradley/TeleportVR.git
cd TeleportVR
npm install
npm run devVisit https://127.0.0.1:3000/
npm install teleportvrImport it into your code
import TeleportVR from "teleportvr";After creating your THREE.Scene and THREE.Camera, create a new TeleportVR object.
const teleportVR = new TeleportVR(scene, camera);Create geometries for the hands and add controller grips, see example code for more info.
Update TeleportVR in your render loop
teleportVR.update();
renderer.render(scene, camera);Basic TeleportVR setup for WebVR and Threejs projects.
Shoot at objects in the scene.
Teleport on top of objects in the scene.
Customising the TeleportVR default meshes.
This is a typescript project consisting of two sub projects with there own tsconfigs.
To edit this example, then modify the files in ./src/client/ or ./src/server/
The projects will auto recompile if you started it by using npm run dev
Visit https://github.com/Sean-Bradley/Three.js-TypeScript-Boilerplate for a Threejs TypeScript boilerplate containing many extra branches that demonstrate many examples of Threejs.
To help support this Threejs example, please take a moment to look at my official Threejs TypeScript course at
Three.js and TypeScript
Discount Coupons for all my courses can be found at https://sbcode.net/coupons




