THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/03/2004 at 15:23, xxxxxxxx wrote:
Cinema 4D Version: 8.206
Language(s) : C++ ;
This might be a standard maths question but I can't work it out.
I want to simulate the rotation tool in my plugin, the problem is that I can't work out the rotation tool works.
If I create a cube in C4D and click rotate, and rotate 30 degrees along the Bank. The cube rotates like it should, around the bank axis.
Now I want to rotate the cube around only the pitch axis (this I want to be done through code, but using c4d as an example)
If i use the AM and increase the Pitch field, the cube rotates around the pitch but in a wonky fashion.
If I use the Pitch handle in the viewport, the cube rotates around the pitch axis perfectly, but all the axis values are changing.
I want to simulate this through code, but I don't understand why it changes all the axis values, when I just want to rotate around the Pitch.
This is probably a basic math problem, but my 3D math is quite poor and still learning it.