I'm developing augmented reality application using Qualcomm QCAR framework. For correct displaying of the object I use model view matrix and projection matrix provided by QCAR.
I'm using these matrices like listed below:
Everything is ok, but I need to rotate the model. Is there any method like model.setRotationX(angle) in Bonzai or I need to multiply my modelViewMatrix on another rotation matrix. I am afraid that when modelViewMatrix will be multiplied by the rotation matrix, model will rotate about the origin, and not about the center of the model.
Please explain me, how can the model be rotated about it's center.