This almost worked:
ofMatrix4x4 mat;
mat = ofGetCurrentRenderer()->getCurrentMatrix(OF_MATRIX_MODELVIEW);
But the end result is wrong
This almost worked:
ofMatrix4x4 mat;
mat = ofGetCurrentRenderer()->getCurrentMatrix(OF_MATRIX_MODELVIEW);
But the end result is wrong
I solved using the previous advice:
ofMatrix4x4 m = ofMatrix4x4::newTranslationMatrix(-basePos);
m *= ofMatrix4x4::newRotationMatrix(ofRadToDeg(angle), 0, 0, 1);
m *= ofMatrix4x4::newTranslationMatrix(basePos);
ofPoint absolutePos = myPos * m;
ofPushMatrix();
ofMultMatrix(m);
ofDrawCircle(myPos, 20);
ofPopMatrix();
ofDrawCircle(absolutePos, 20);