Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

288
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda