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

139
Visualizações
Add force to object by rotation

I want to add force to an object, by using its own rotation. For example, if I turn my object 90 degrees to the left. How can I add force towards, but consider the 90 degrees and not the local rotation?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I am not sure what exactly you want to do. What do you want to add force towards? Did you mean forwards?

Another question is also when do you add the force and 90° to left from what?

I assume this:

  1. the object you want to add force to is at some angle in the world
  2. the object rotates to 90° to the world's left
  3. at some time after the rotation you want to add force to it based on the rotation

If that is what you want then you need to:

  • specify first what do you measure the angle change from (the original angle) and save it in a variable
  • have a vector in the direction you want to add the force when the object has the above-mentioned angle
  • when you want to add the force, you need to calculate the difference between the current angle and the saved angle
  • rotate the vector based on the angle difference
  • add the force in the direction of the vector
over 4 years ago · Santiago Trujillo 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