Set object in front of camera in ar

I want to make perspective like fps game in ar using webxr.

Is there any way to fix object in camera view?

I tried

var pLocal = new THREE.Vector3( 0, 0, -2 );
var target = pLocal.applyMatrix4( camera.matrixWorld );							
gun.position.copy( target );
gun.lookAt(camera.position);

but it didn’t work

also

gun.position.set(camera.position.x, camera.position.y, camera.position.z);
gun.quaternion.copy(camera.quaternion);

didn’t work too

how can I fix object in front of camera in webxr?