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

124
Visualizações
How do I move a three.js 3D object by world origin with GSAP rather than local origin?

Basically my cube is in a group, the group is at position.x = 5, and I'm trying to move my cube to position.x=12 from world origin with GSAP, but it's relative to the group's position instead. Therefore the cube's world position is x = 17 but I want it to be x=12 world position.

Is it possible to tell GSAP to animate from the world origin instead? I'm not sure how I would do this, I have looked into the documentation and found

.getWorldPosition(), but am unsure how to animate the resulting vector in GSAP with my camera also copying the position during the animation.

Here is a codesandbox (refresh page to see animation start from 5->17 rather than 0->12): https://codesandbox.io/s/currying-bush-v02zhn?file=/src/index.js

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