Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

161
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!