0
$\begingroup$

The instances of a grid rotate wrongly. I want a rotation only in the y direction but the rotation is done in the x and y direction. enter image description here

I must be something essential that I'm doing wrong... How do I pass on the distance value from the proximity node as a y vector value?

Thx!

$\endgroup$
1
  • 1
    $\begingroup$ A note in addition to @Chris' answer: Map Range->Separate XYZ casts a Float to a Vector, which will fill X,Y and Z of the vector with the same float. Then SeparateXYZ(Y)->Rotation does it again,. You could replace Separate XYZ with Combine XYZ . $\endgroup$
    – Robin Betts
    Commented Dec 21, 2022 at 21:32

1 Answer 1

1
$\begingroup$

try this node tree:

enter image description here

enter image description here

several things you should know:

  • Blender and GN are working internally with radians, not degrees. So if you want to rotate a half circle, the correct value is Pi, not 180 degrees.

  • the map range node of type float outputs a float. So it makes no sense to separate a float to xyz value.

  • you want to use the combine xyz value - which takes 3 floats and makes a vector out of them

Hint: you can enter "pi" in a value field - Blender knows it

Hint 2: you can enter "tau" in a value field - which is 2 * pi

$\endgroup$
2
  • $\begingroup$ This indeed solves my issue. Thanks Chris! $\endgroup$ Commented Dec 21, 2022 at 21:24
  • $\begingroup$ if my answer helped you, pls click on the checkmark left of my answer. thx $\endgroup$
    – Chris
    Commented Dec 22, 2022 at 3:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .