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

236
Vistas
three.js get right hand vector

This gives me the forward vector of a Object3d

var forward = new THREE.Vector3();
object.getWorldDirection(forward); 

How do I get the right-hand side vector of the object (using Three.JS)?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

My best advice is to NOT include 'three.js' in your Google search when looking help regarding three.js.

I excluded 'three.js' from my searches and found similar questions by people in a Unity community...

Knowing this I found a very simple (admittedly very hacky) solution which works in three.js.

Take a plain-old right-hand vector

var right = new THREE.Vector3( 1, 0,  0 );

And just "turn it" by the object's .quaternion value...

right.applyQuaternion( object.quaternion );

Any (normalized) direction relative to the object's rotation can be gleamed in this fashion

Example: http://jsfiddle.net/9Lzx683v/

Picture of a Cube, with six smaller cubes orbiting around it's XYZ axis directions

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