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

175
Visualizações
Is there any thing like origin point in Three.js

Please I want to know if there is anything like origin point in three.js just as we have it in Blender, please I have tried to do a research on this topic but to no avail. I want to make a pinball game, it does not make any sense if the origin point of the paddle that strikes the ball to be at the middle of the object, it has to be at the left or right side of it (it affects how the object rotates). So please Is there a way of changing an object's origin point as we we can to in Blender or After Effects. A kind of pivot. Thanks

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There's at least 2 ways you could do this.

Option 1

One is to use BufferGeometry.translate() to translate your geometry so the pivot point is where you want it.

Option 2

Another is to use a hierarchy of objects:

  • Have a parent object, which you will rotate. This could be a Group.
  • Create the Mesh as a child object of the parent, using add() and set the position of the child Mesh so that the point you want the mesh to pivot about is at the origin of the parent object.

I most situations I'd probably go for option 2, as it's generally more flexible and easier to manipulate Object3Ds. Manipulating the geometry tends to be a bit lower-level and it can be harder to diagnose problems.

about 4 years ago · Juan Pablo Isaza Relatório
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