Nacho
Automation & Design Engineer
Inventor Programmer (C#, VB.Net / iLogic)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Hi Nigel,
Is this what you need?
http://adndevblog.typepad.com/manufacturing/2014/11/rotate-drawing-view-around-x-axis-of-sheet.html
Cheers,
Hi
yes that works great 🙂 looking at the code, the UpVector is the only option? what if i wanted to go the other way or even rotate left or right? i couldnt see any other options aprt from UpVector
Thanks
Nigel
Nacho
Automation & Design Engineer
Inventor Programmer (C#, VB.Net / iLogic)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Hi Nigel,
You can rotate any way you like, you just have to calculate the new Eye position and UpVector.
In this sepcific case it was enough to swap View direction and UpVector to achieve what we need.
If you wanted to e.g. rotate the model around the Y axis of the sheet you would only have to modify the Eye position, nothing else.
Btw my code was incorrect because the Target should stay the same - it's the Eye position that changes. Updated the blog post.
Cheers,
I made a more generic blog post about it:
http://adndevblog.typepad.com/manufacturing/2014/11/rotate-camera-around-any-axis-any-angle.html
Nacho
Automation & Design Engineer
Inventor Programmer (C#, VB.Net / iLogic)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Hi,
If you rotate around the sheet X then it goes either up or down depending on the angle you pass in. If you rotate around sheet Y then it goes left or right.
Cheers,