Skip to content

Commit

Permalink
Fix teleportation
Browse files Browse the repository at this point in the history
  • Loading branch information
toji committed Feb 9, 2024
1 parent d8b92d6 commit e16b4ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/xr-teleport.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ export class XRLocomotionManager extends THREE.Group {
endSelectDestination(input, renderer, camera) {
if (!input || input != this.teleportingInput) { return; }

renderer.xr.updateCamera(camera);
const xrCamera = renderer.xr.getCamera(camera);
const validDest = this.teleportGuide.getTeleportOffset(OFFSET_VEC, xrCamera);

Expand Down

0 comments on commit e16b4ef

Please sign in to comment.