Calculate Angle Between Two Primitives/Normals

   2070   0   0
User Avatar
Member
1 posts
Joined: March 2021
Offline
Hey everyone,

I am new to Houdini and have been trying to figure out this problem for the last few days. In short,I am trying to calculate the angle between a primitive in and its neighbor/s.

I am able to calculate the angle using vex, but the problem is the result is the same whether or not the faces are pointing at each other, or away from each other as shown in this image.


Ideally, the angles in the example would be something like 270 and 90 deg, instead of both being calculated as 90. I would appreciate if someone could help me out here or point me in the right direction so the angles aren't identical. I have also attached the hip file with a basic setup and the vex.

Thanks!
Edited by harleywrecks - March 31, 2021 10:42:26

Attachments:
Rotation.hipnc (133.1 KB)

  • Quick Links