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

165
Vistas
Unable to shorten flow field vectors

I have this program where I'm trying to make a flow field. I wanted to use the vectors I use to make the noise to be available for the particles moving through the flow field, so they can use it to accomplish that. But I'm running into a problem: my flow field lines are very lenghty: enter image description here

I'm doing soemthing like this: enter image description here

And I'm unable to shorten the vector used to discover the dynamic vertex position. Does someone know how to achieve this?

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

0

So I figured it out. I just had to multiply the vector by a number using a scale function, like so:

const noiseVec = scale(GRID_LINE_SCL, normalize(vec2(Math.cos(noiseValue), Math.sin(noiseValue))));
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