Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

100
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda