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

284
Vistas
Three.js set camera and rotation programmatically when using OrbitControl

I use the OrbitControl on my project, and thought to add the ability to rotate and change the position of the camera using form input. But I am encountering some issues.

I added an event listener to the input which triggers an event when the user changes the value of the input.

setPositionByInput(x, y, z){
    camera.position.x = x
    camera.position.y = t
    camera.position.z = z
}

After calling this method I call the Three.ja function which renders again the object.

The function works fine, but when trying to move the Three.js object using the OrbitControl the position changed automatically to the position was before running the function above.

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