pmndrs / react-xr

🤳 VR/AR with react-three-fiber
https://npmjs.com/@react-three/xr
MIT License
1.98k stars 137 forks source link

Teleportation Component #260

Closed richardanaya closed 12 months ago

richardanaya commented 1 year ago

It would be awesome if there was an easy way to just add a component that lets a user teleport around on intersection with child elements.

It seems like the teleportation example uses reference spaces for this.

https://threejs.org/examples/webxr_vr_teleport.html

laffan commented 1 year ago

@richardanaya I've had success riffing on @mwmwmw 's component that does exactly that : https://codesandbox.io/s/e3yc3

richardanaya commented 1 year ago

Submitted initial PR for support https://github.com/pmndrs/react-xr/pull/263

You can see it in action on https://avatarposer.com/