3
$\begingroup$

I want the planes affected by the object fallof to rotate towards the origin of the sphere. Basically what would track to constraint do. Is there a way to achieve that?

I have tried converting sphere¨s direction to rotation but didnt get the result I wanted.

enter image description here

$\endgroup$
5
$\begingroup$

You can use a second Offset Matrix node with rotation mode to achieve the desired result.

result

The rotation itself is calculated with the Direction to Rotation node, like you assumed.
The direction has to be calculated from the already translated planes, otherwise the vectors would be incorrect. You can get them with a Decompose Matrix node from the first Offset Matrix.

Node setup

$\endgroup$
4
$\begingroup$

I interpreted your question differently, so I'll post my answer too, though binweg's answer is probably what you're looking for.

enter image description here

If you want to rotate the planes along the z-axis, you can use a Math > Arctangent B/A node to get the correct rotation:

enter image description here


Download the .blend:

$\endgroup$
  • $\begingroup$ Yes, binweg's solution was the one I was looking for, so I will accept his answer, but I'm giving you a vote too, since it answers my 'track to" question, even though in different way $\endgroup$ – Johan Apes May 31 '18 at 20:38
  • 1
    $\begingroup$ Is blendgur the new blend-exchange? Which one should I use? $\endgroup$ – Leander May 31 '18 at 22:24
  • 2
    $\begingroup$ @Leander Blendgur hosts blends by putting them inside .png images and uploading them as images to Stack Exchange. This has the advantage of relying on no external storage. Blend-Exchange on the other hand currently stores blends on Google Drive (however, that may change depending on whats cost effective). The downside of Blendgur using StackExchange's image upload is that AFAIK nobody has found out whether StackExchang and Imgur are actually okay with people doing this. If they give it the thumbs up we will add imgur storage to blend-exchange in addition to classic storage. $\endgroup$ – GiantCowFilms May 31 '18 at 23:21

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.