I just wanted to clarify the usage of this function.
As far as I understand, this function stores the additional transformation as a member of CCNode and then uses it to adjust CCNode’s own transformation. So if we need one node to be relative to another one, we have to update this additional transformation every frame manually (e.g. via scheduler). Isn’t this the same as getting pseudo-parent’s position / direction / scale / whole_transformation by hand and applying those values to the pseudo-child node?
I mean it would be more convenient to have these things done automagically. For instance, pseudo-code:
m_pseudo_parent = pseudo_parent;
[blah-blah-blah, some usual things]
m_sTransform = CCAffineTransformConcat(m_sTransform, m_pseudo_parent->nodeToParentTransform());
Thus CCNode’s transformation will be adjusted in respect to pseudo-parent automatically.
Or did I get the idea of CCNode::setAdditionalTransform wrong?