Jump to content

Orient Point Towards Another


Recommended Posts

Hello! I'm copying a bunch of flat pentagon shapes to points. All of the copies are facing the correct direction except one:
image.png.9eb080a638fe48131e927d7189d8b236.png

I first set a perpendicular N direction on the points to copy to, which helps the pentagons get copied almost in the right direction.
Do I first need to aim the orient direction of the points toward a specific direction?

I have included a hip file with something I think might work, but I'm just not sure how to turn two vectors into an orient.

Any help is greatly appreciated!

orient_toward_specific_point.hiplc

Link to comment
Share on other sites

I basically think of them as rotation around a vector direction. You define a vector in space and you define the amount you rotate around it. That's it. Pretty simple.

All the complicated stuff happens under the hood. But if you want to dive into what is actually going on with all the complex numbers and four-dimentional space and everything, this is a really good explanation:

https://eater.net/quaternions

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...