Grasshopper

algorithmic modeling for Rhino

Hello everyone, 

Recently was working with vectors, and found the XYZ Vector component creates the same vector despite using negative vectors... so how would i construct a vector that uses those negative direction of the input vectors?

 

 

Views: 4413

Replies to This Discussion

The vector component takes single values for each vector axis not whole vectors which is what you're feeding it by using unit vector components at the inputs.  Remove those and feed the slider values directly into the vector component.  Otherwise use mass addition component in place of the vector component with the unit vector components as inputs.

 

Chris

Thanks Chris,

I thought XYZ Vector Component calculates the resultant of all vectors...

Hi! I'm having a similar problem by using a unit vector.

I'm providing a unit vector Z, the value (0,0:0,0:-0.2), but the unit vector Z changes de value on to (0,0:0,0:0.2).

How do I keep my value negative? 

Thankyou!

Hi Tina,

the input number of the Unit Z value is correctly retained in the output. However if you're inputting a vector similar to (0,0,-0.2) then it will have to be converted into a number before the Unit Z component does anything with it. After all the input is of type number, not vector. When a vector is converted into a number, the length of the vector is used. Vector lengths are never negative, and the length of (0,0,-0.2) is +0.2

Is that the problem?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service