11-02-2014 07:36 AM
Hi guys, I'm a little bit confused about the machanism of how to rotate an object in 3D picutre.
My goal is to let a cone pointing at the origin at any given position, but it seems it's hard to rotate the cone with the 'set rotation. vi' around more than 1 axis.
Is there any intuitive way to rotate an object?
It is at (2,2,2), initially it points up in z axis
This is what I want, (I set (1, -0.2, -0.3) and 135° in set rotation. vi, it works but I don't know why
)
Thanks a lot !!!
yhs
11-02-2014 12:50 PM
the axes of rotation will be the cross product of (the vector from origin to cone) and (orientation of the cone). The angle of rotation can be calculated from these two vectors as well.
The vectors would be [2,2,2] and [0,0,1] as you have the VI set up currently.
11-03-2014 08:40 AM
Thank you very much, it works