Hello!
I have another question
And i would be very happy if anyone could give me advice
Control *c = MatrixCtrl->GetRotationController(); IKeyControl *ikc = GetKeyControlInterface(c);
Above is the code which I want to use. MatrixCtrl is a simple Control, and the ikc is always null.
Can anyone give me advise how could i solve this?
Solved! Go to Solution.
Solved by istan. Go to Solution.
Thanks for your suggestion. I've looked at the code and found my mistake.
For others who may ran into this problem, I share my mistake.
My mistake was:
I've created one newdefaultmatrix3controller for my subcontroller.
But i should create a float subcontroller for each rotation axis.
So i created RotXCtrl,RotYCtrl,RotZCtrl subcontrollers as newdefaultfloatcontrollers
Then called their setValues and after that I called the addKey. and now it works.
Once again many thaks for you