Jump to content

Solver vector directions comparison problem


Jsmidlow

Recommended Posts

Hello. I'm struggling with changing vector direction inside a solver. In the file attached there is a point that reads vector attribute of a nearpoint and uses it in order keep on moving. The movement is done in solver. The problem is that it can after doing a "step" the point can take a new vector that is opposite to it's current direction and "step back". It returns to previous position where it gets a former "go ahead" vector and does a "step forward" and repeats the whole vector change and "back and forth" movement on and on. Inside the solver I try to compare vectors of previous and current frame and build a condition - if they are opposite let the point go down {0,1,0}; But no matter how I try it doesn't work.
image_2021-02-17_18-53-02.thumb.png.ccce858691583963b859002e3890bf02.png

If someone can help me... 

SOLVER_problem.hipnc

Edited by Jsmidlow
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...