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

180
Views
Three.js Establecer posición relativa a otro Objeto

Recientemente, he estado trabajando en un videojuego con Three.js y quiero que la tecla de flecha hacia arriba avance en relación con la cámara.

Aquí está mi código para la tecla de flecha.

 var x = 0; var rotx = 0; setInterval(function() { if (x == 1){ camera.position.z += 0.05 } } document.addEventListener("keydown", function(event){ if (event.key == "ArrowUp"){ x = 1 } }); document.addEventListener("keyup", function(event){ if (event.key == "ArrowUp"){ x = 0 } });

Muchas veces he estado buscando la respuesta. Por lo general, se encuentra con ambos

 object.localToWorld(); object.worldToLocal();

pero parece que no puedo entender cómo usar este método.

about 4 years ago · Santiago Trujillo
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!