Jump to content

finding angle between particle and normal of a point


Hello world

Recommended Posts

The dot product of two vectors returns 0 when the vectors are perpendicular to each other, and 1 when they are parallel.

I "think" you can find the angle between two normalized vectors as follows:

angle = acos( v1 * v2 )

The problem is, I don't see a ACOS VOP node??? that seems very strange to me.

Link to comment
Share on other sites

Ther is a trig node with inverse cos sin and tan. Like hopbin said, normalize the two vectors and then you get a number between -1..1, representing the projection of A onto B in a "unit" triangle, being the cosine of the angle between A and B. So, inverse cosine will give you the angle in radians. If you use expressions you get it in degrees, so watch out!

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...