Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
How can I fix object in front of camera in AR with THREE.JS?

I want to make a perspective like FPS game in AR with THREE.JS

I tried this way

gun.quaternion.copy(camera.quaternion);

but it didn't work.

and 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 too.

When I rotate camera, object doesn't follow and doesn't rotate.

How can I make a perspective like FPS game in AR?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!