Hi I'm trying to find an anle between two vectors using the vangle.
Before I continue heres a quick question:
Is there anywhere in houdini where you can test an expression, besides just dropping it into the expression editor. Is there something like the textport where I can type expressions Im trying out?
So I have two vectors: A and B
A is parralel to the x axis so A=vector3(1,0,0) …right???
and B at a 45 degree angle - so: B=vector3(1,1,0) …right too???
now using vangle(A,B) I get 0 returned …should I not get 45?
What Im I doing wrong?
Pleeeze help…I tried normalize A and normalize B as well but arnt they already normalized here?
vangle?
4638 2 0-
- Phillip
- Member
- 17 posts
- Joined: July 2005
- Offline
-
- EigenAlex
- Member
- 639 posts
- Joined: July 2005
- Offline
-
- Phillip
- Member
- 17 posts
- Joined: July 2005
- Offline
I got it to work….
You need to specify all your data types.
I had missed one, so Houdini, I guess by default, set my value to an integer - which meant that I either got a 0 or 90 back. I put float in befire my var, and everthing works great now.
Thanks anyways Alex - I appreciate your quick response
You need to specify all your data types.
I had missed one, so Houdini, I guess by default, set my value to an integer - which meant that I either got a 0 or 90 back. I put float in befire my var, and everthing works great now.
Thanks anyways Alex - I appreciate your quick response

Thanks again,
Phillip
Phillip
-
- Quick Links