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

97
Views
Get absolute Camera Position and Rotation

I've set up a very simple script system where I can change the position and rotation of the camera in space through string commands in the browser like this

setCameraPosition(0,0,0); setCameraRotation(1,0,1); 

When I recreate the current camera position into a command and then reexecute this command the camera position is as expected. Even when I change the camera position with Mouse or Touchscreen and execute the command. When I reload the webpage and execute the command again the camera position/rotation is then different from what I saw earlier.

I am sure it is some kind of misunderstanding on my part.

I'll recreate the current camera position like this:

const pos = camera.position
const rot = camera.rotation
const args: string[] = []
args.push(`setCameraPosition(${pos.x}, ${pos.y}, ${pos.z})`)
args.push(`setCameraRotation(${rot.x}, ${rot.y}, ${rot.z})`)
return args.join('; ') + ';'
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!