OrbitCamera action around node (card flip)

OrbitCamera action orbits the camera around the center of the screen using spherical coordinates. If target node is away from the center of the screen the result looks very ugly. Is there any way to orbit around target node? The goal is to have nice card flip animation.

I looked at source code (CCActionCamera.cpp) but I wasn’t able to even found line where the action uses target’s coordinates. So, I can’t simulate that target node is in the center of the screen.

Any help is highly appreciated!

P.S. I know about great MrCapone’s solution ( https://github.com/MrCapone/cocos2d-x-custom-actions ), but it works only with sprites. =(

P.P.S. I’m using 3.10 cocos2d-x but if there is a solution that works with newer versions, please share it!

No suggestions? :disappointed_relieved: