HOW to ONLY set one of the values of a Vector without getting this Vector?(keeping other two value not change to zero)

if like this:
图片1
other two value will change to zero

so I have to do like this:
截图20240922120836
to get this Vector’s other 2 value and put to its self,but it’s a bit too complex.

is there any node to set x directly without involving y z?
thanks!

this is how it works.
even if you find a build-in node that does the thing.
it probably is wrapping what you did in the picture into that node.

Do this on vectors:
(TestVector * [0,1,1]) + Make vector[TestFloat,0,0]

or even better:

Then you can create function library, and new function in it: Then make it pure.

Like this:

2 Likes

image

Why isn’t a vector just a regular struct one can Set Members In? Wouldn’t this be neat:

Some kind of overhead? Spot odd one out:

image

2 Likes