1
$\begingroup$

So I have a point instance node, with the object as a cube that is scaled down to 0.001m. I want to be able to drag an empty around the scene, and have all the cubes avoid the empty. Is there a way to do this? I am a visual learner, so pictures would be greatly appreciated. Thank you!
Node setup as of now, the empty controls scale. Node Setup as of now.  The empty controls scale as of now.

$\endgroup$
2
  • 1
    $\begingroup$ I like visuals too, so a screenshot showing your node setup as well as your mesh (instance mesh, and "emitter" mesh if there is one) would be helpful. I can't tell from your question whether you're instancing the cube on another mesh (without a join geometry node), or if you're instancing on an empty object (this matters because mesh vertices represent instance points). $\endgroup$ Jul 31 '21 at 23:33
  • $\begingroup$ I have updated the question $\endgroup$ Aug 1 '21 at 0:37
1
$\begingroup$

you can do it with this node setup:

enter image description here

I first calculate the direction of the cube/position by subtracting the empty's location from the position. Then i calculate the length of that vector. This i reverse this by dividing 1/distance. Then i scale my "movement" vector from my subtractions with this value.

result:

enter image description here

$\endgroup$
3
  • 1
    $\begingroup$ Amazing, however, is there a way to control falloff, and/or the radius of the effector? $\endgroup$ Aug 2 '21 at 15:31
  • $\begingroup$ Of course ;) ask a new question and I will help you! 🤗 $\endgroup$
    – Chris
    Aug 2 '21 at 15:56
  • $\begingroup$ Thanks! My new question is here: blender.stackexchange.com/questions/233302/… $\endgroup$ Aug 2 '21 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.