Hello world Posted February 24, 2012 Share Posted February 24, 2012 Im new to graphics and maths.how can we calculate the angle between the particle and the point in vops.Please let me know.thanks Quote Link to comment Share on other sites More sharing options...
papicrunch Posted February 24, 2012 Share Posted February 24, 2012 hi, you can in vop (particlePosition-pointNormalPosition) dot product by normalOfPoint dont test but a think like that should work Have fun, Thomas Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted February 24, 2012 Share Posted February 24, 2012 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. Quote Link to comment Share on other sites More sharing options...
Macha Posted February 24, 2012 Share Posted February 24, 2012 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.