|
@@ -254,10 +254,9 @@
|
|
|
|
|
|
const offset = entity.getComponent( OffsetFromCamera );
|
|
const offset = entity.getComponent( OffsetFromCamera );
|
|
const object = entity.getComponent( Object3D ).object;
|
|
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 );
|
|
entity.removeComponent( NeedCalibration );
|
|
|
|
|
|
}
|
|
}
|