Skip to content

Commit

Permalink
Examples: Fixed webxr_vr_handinput_pointerclick.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed May 12, 2023
1 parent 79cc93c commit c4befe1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/webxr_vr_handinput_pointerclick.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,9 @@

const offset = entity.getComponent( OffsetFromCamera );
const object = entity.getComponent( Object3D ).object;
const xrCamera = this.renderer.xr.getCamera();
object.position.x = xrCamera.position.x + offset.x;
object.position.y = xrCamera.position.y + offset.y;
object.position.z = xrCamera.position.z + offset.z;
object.position.x = camera.position.x + offset.x;
object.position.y = camera.position.y + offset.y;
object.position.z = camera.position.z + offset.z;
entity.removeComponent( NeedCalibration );

}
Expand Down

0 comments on commit c4befe1

Please sign in to comment.