replace quaternion rotate with matrix rotate