Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

231
Vistas
ammo.js after calling applyTorque how to update the force direction?

I am using ammo.js to create a simple demo.

I have a 3d object in the world and I can make it move with the following code:

cubeObject.applyForce(new Vec3(10, 0, 0));

It will move along the x-axis and then stop gradually.

Now I want to make it to turn a little bit (imagine a car turning):

cubeObject.applyTorque(new Vec3(0, 1000, 0));

After calling this code, the cube (car) dose turn a certain degree (this is good as expected).

But the problem is, the car is still moving along the x-axis instead of moving towards the direction it is facing (after turning).

I do not know what I am missing here.

Any advice will be appreciated, thank :)

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda