5
$\begingroup$

I'm trying to lock the position of an object (Blue arrow) onto a single face of another object (Red Square) so that it follows it's rotation exactly

Usually I am able to do this with a 'sample nearest surface' node setup like below:

enter image description here

but in this case I seem to be getting misalignment happening - particularly when I flip the object upside down? Could this be because I'm using shape keys to deform the mesh or am I missing something else?

enter image description here

Any help would be appreciated, thank you

$\endgroup$
5
  • $\begingroup$ i am sorry....where is the misaligning? don't see it -> i just ran the animation of your example file $\endgroup$
    – Chris
    Nov 9, 2023 at 9:20
  • $\begingroup$ You can see in the GIF the Blue arrow rotates around like a compass - whereas I'm wanting it to stay locked with the orientation of the Red plane $\endgroup$
    – JaRa
    Nov 9, 2023 at 9:22
  • 1
    $\begingroup$ do you want it like this? [1]: i.sstatic.net/pfypI.gif $\endgroup$
    – Chris
    Nov 9, 2023 at 9:29
  • $\begingroup$ yeah that's it! but just facing down so the arrow is flat and parallel with the grey/red surface (Like in my first picture) $\endgroup$
    – JaRa
    Nov 9, 2023 at 9:40
  • $\begingroup$ this? [1]: i.sstatic.net/DUCEx.gif $\endgroup$
    – Chris
    Nov 9, 2023 at 9:57

1 Answer 1

4
$\begingroup$

ok, i hope i got what you want. Try this:

enter image description here

result:

enter image description here

$\endgroup$
3
  • 1
    $\begingroup$ yeah thanks that pretty much does it - still a tiny bit of misalignment at the end but I guess that's just because my mesh face is so distorted? imgur.com/a/6pl1AVf $\endgroup$
    – JaRa
    Nov 9, 2023 at 10:30
  • $\begingroup$ might be the reason. I am not sure. $\endgroup$
    – Chris
    Nov 9, 2023 at 12:21
  • $\begingroup$ @JaRa ... works for me whole animation (I don't see any distortion ... just for arrow pointing down I revert Indexes from 1, 2, 3 to 3, 2, 1 $\endgroup$
    – vklidu
    Nov 11, 2023 at 16:15

You must log in to answer this question.

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